Data Quality Monitoring Reports (DEPRECATED)

From SemWebQuality.org
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
 
SPARQL Queries
 
SPARQL Queries
  
<syntaxhighlight lang="plsql">
+
<syntaxhighlight lang="plsql" line="GESHI_FANCY_LINE_NUMBERS">
 
SELECT ?i ?condvalue
 
SELECT ?i ?condvalue
 
WHERE {
 
WHERE {

Revision as of 11:58, 27 August 2011

SPARQL Queries

  1. SELECT ?i ?condvalue
  2. WHERE {
  3.     ?dqr a dqm:ConditionalValueRule .
  4.     ?dqr dqm:testedProperty ?tprop .
  5.     ?dqr dqm:testedClass ?tclass . 
  6.     ?tclass dqm:hasURI ?tclassreal .
  7.     ?tprop dqm:hasURI ?tpropreal .
  8.     BIND (smf:buildURI(?tpropreal) AS ?tpropURI) .
  9.     BIND (smf:buildURI(?tclassreal) AS ?tclassURI) .
  10.     ?i a ?tclassURI .
  11.     ?dqr dqm:hasCondition ?cond1 .
  12.     ?cond1 dqm:conditionalProperty ?cprop .
  13.     ?cprop dqm:hasURI ?cpropreal .
  14.     ?cond1 dqm:equals ?condvalue .
  15.     BIND (smf:buildURI(?cpropreal) AS ?cpropURI) .
  16.     ?i ?cpropURI ?VALUE .
  17.     FILTER (str(?VALUE) = str(?condvalue)) .
  18.     ?i ?tpropURI "" .
  19.  
  20.  }
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox