PCA RDL Verification

Message
Author
KeithWillshaw
Posts: 77
Joined: Tue May 15, 2012 8:48 am

Re: PCA RDL Verification

#11 Post 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
Attachments
Entries with Rnumbers that are Missing entries in Jord RDL.pdf
(109.28 KiB) Downloaded 725 times

vvagr
Posts: 282
Joined: Mon Feb 27, 2012 11:01 pm
Location: Moscow, Russia
Contact:

Not unique labels

#12 Post 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

Post Reply