15926.org
http://15926.org/

PCA RDL Verification
http://15926.org/viewtopic.php?f=5&t=154
Page 2 of 2

Author:  KeithWillshaw [ Fri Oct 25, 2013 1:18 pm ]
Post subject:  Re: PCA RDL Verification

vvagr wrote:
The following SPARQL query is looking in PCA RDL for RDS-entities which have R-numbers assigned via rdsWipEquivalent predicate but have no other data about them at the endpoint (no type, no label, nothing).
Code:
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX RDL: <http://posccaesar.org/rdl/>

SELECT ?y
WHERE { GRAPH <http://irm.dnv.com/ontologies/iring.map> {
?x RDL:rdsWipEquivalent ?y .}
OPTIONAL { ?y ?p ?z } .
FILTER (!bound(?z)) }


There are 13403 such entities. See URIs in attached file.
Attachment:
The attachment VoidWithRNumb.zip is no longer available


I found some examples of these when checking mapping errors, details are in the attached file

Keith

Attachments:
Entries with Rnumbers that are Missing entries in Jord RDL.pdf [109.28 KiB]
Downloaded 181 times

Author:  vvagr [ Sun Mar 23, 2014 9:19 pm ]
Post subject:  Not unique labels

The following short script for .15926 Editor is looking for entities with identical labels:

Code:
from collections import defaultdict
doc = appdata.active_document
res = defaultdict(list)
for t in doc.grAllTriples():
   if t.p == 'http://www.w3.org/2000/01/rdf-schema#label':
      res[t.v].append(t.s)
items = set()
for k, v in res.iteritems():
   if len(v)>1:
      items |= set(v)
show(id=items)


There are 26 entities with various problems with identical labels. Some have double labels (retired elements with original labels not removed), some are the results of "retired" never put in place (it seems).

The list of entities with problems:


Page 2 of 2 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/