Changes between Version 1 and Version 2 of vSPARQLCleanupQueries


Ignore:
Timestamp:
07/10/09 12:41:00 (9 years ago)
Author:
mar
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • vSPARQLCleanupQueries

    v1 v2  
    33Manipulating ontologies at the RDF triple level can result in RDF graphs that may cause problems for graphs with higher-level semantics. On this page, we list several vSPARQL queries that can be used to clean up some of these problems. 
    44 
    5 In each of these examples, the FROM <file:///Users/mar/bobo/dbg_neuroFMA/intermediate_language/current.xml>is considered the input source and needs to be replaced according to your input dataset. 
     5In each of these examples, the FROM <file:///.../current.xml>is considered the input source and needs to be replaced according to your input dataset. 
    66 
    77---- 
     
    2424          ?a temp:reaches ?c .  # reachability list 
    2525    } 
    26     FROM <file:///Users/mar/bobo/dbg_neuroFMA/culprit4.xml> 
     26    FROM <file:///.../culprit4.xml> 
    2727    WHERE { 
    2828          ?a rdf:first ?noop . 
     
    4040              ?a temp:reaches ?c . # reachability list 
    4141    } 
    42     FROM <file:///Users/mar/bobo/dbg_neuroFMA/culprit4.xml> 
     42    FROM <file:///.../culprit4.xml> 
    4343    WHERE { 
    4444          ?a ?pred ?b . FILTER(?pred != rdf:rest) . 
     
    5454    } 
    5555    FROM NAMED <identify_rdfListEmptyNodes> 
    56     FROM <file:///Users/mar/bobo/dbg_neuroFMA/culprit4.xml> 
     56    FROM <file:///.../culprit4.xml> 
    5757    WHERE { 
    5858          GRAPH <identify_rdfListEmptyNodes> { ?a temp:reaches ?c . } . 
     
    6868     } 
    6969     FROM NAMED <identify_rdfListEmptyNodes> 
    70      FROM <file:///Users/mar/bobo/dbg_neuroFMA/culprit4.xml> 
     70     FROM <file:///.../culprit4.xml> 
    7171     WHERE { 
    7272           ?x ?y ?z . 
     
    100100     FROM NAMED <identify_rdfListEmptyNodes> 
    101101     FROM NAMED <remove_startEdgeRdfListEmptyNodes> 
    102      FROM <file:///Users/mar/bobo/dbg_neuroFMA/culprit4.xml> 
     102     FROM <file:///.../culprit4.xml> 
    103103     WHERE { 
    104104           { 
     
    133133               ?before2 ?pred2 rdf:nil . 
    134134     } 
    135      FROM <file:///Users/mar/bobo/dbg_neuroFMA/culprit4.xml> 
     135     FROM <file:///.../culprit4.xml> 
    136136     # Find owl:unionOfs that have 0 or 1 element. 
    137137     FROM NAMED <identify_shortUnionOfs> [ 
     
    148148              ?b2 rdf:rest rdf:nil . 
    149149         } 
    150          FROM <file:///Users/mar/bobo/dbg_neuroFMA/culprit4.xml> 
     150         FROM <file:///.../culprit4.xml> 
    151151         WHERE { 
    152152                 { 
     
    201201               ?a ?b ?c . 
    202202     } 
    203      FROM <file:///Users/mar/bobo/dbg_neuroFMA/intermediate_language/current.xml> 
     203     FROM <file:///.../culprit4.xml> 
    204204     # identify allValuesFrom with empty RDF lists 
    205205     FROM NAMED <identify_emptyAllValuesFrom> [ 
     
    209209                   ?allB owl:unionOf rdf:nil . 
    210210         } 
    211          FROM <file:///Users/mar/bobo/dbg_neuroFMA/intermediate_language/current.xml> 
     211         FROM <file:///.../culprit4.xml> 
    212212         WHERE { 
    213213               ?x owl:allValuesFrom ?allB . 
     
    237237               ?a ?b ?c . 
    238238     } 
    239      FROM <file:///Users/mar/bobo/dbg_neuroFMA/intermediate_language/current.xml> 
     239     FROM <file:///.../culprit4.xml> 
    240240     # identify the set of owl:Restrictions that do not have values associated with 
    241241     # owl:onProperty restrictions 
     
    246246              ?owlrestrict owl:onProperty ?onprop . 
    247247         } 
    248          FROM <file:///Users/mar/bobo/dbg_neuroFMA/intermediate_language/current.xml> 
     248         FROM <file:///.../culprit4.xml> 
    249249         WHERE {  
    250250                       ?x rdfs:subClassOf ?owlrestrict .