Page 2 of 2

Re: PCA RDL Verification

Posted: Fri Oct 25, 2013 1:18 pm
by KeithWillshaw
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: Select all

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.
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

Not unique labels

Posted: Sun Mar 23, 2014 9:19 pm
by vvagr
The following short script for .15926 Editor is looking for entities with identical labels:

Code: Select all

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:
http://posccaesar.org/rdl/RDS5550978528, http://posccaesar.org/rdl/RDS5550978539, http://posccaesar.org/rdl/RDS1443397941, http://posccaesar.org/rdl/RDS6822500, http://posccaesar.org/rdl/RDS999176469, http://posccaesar.org/rdl/RDS999858197, http://posccaesar.org/rdl/RDS999174953, http://posccaesar.org/rdl/RDS290474, http://posccaesar.org/rdl/RDS999184938, http://posccaesar.org/rdl/RDS266264, http://posccaesar.org/rdl/RDS999182779, http://posccaesar.org/rdl/RDS999181866, http://posccaesar.org/rdl/RDS500741361, http://posccaesar.org/rdl/RDS999181844, http://posccaesar.org/rdl/RDS7309965, http://posccaesar.org/rdl/RDS5550978593, http://posccaesar.org/rdl/RDS7480340, http://posccaesar.org/rdl/RDS5550978582, http://posccaesar.org/rdl/RDS999179143, http://posccaesar.org/rdl/RDS999186940, http://posccaesar.org/rdl/RDS7310010, http://posccaesar.org/rdl/RDS1661765921, http://posccaesar.org/rdl/RDS1661758501, http://posccaesar.org/rdl/RDS1467625211, http://posccaesar.org/rdl/RDS999623921, http://posccaesar.org/rdl/RDS7309920