Data Quality Monitoring Reports (DEPRECATED)
From SemWebQuality.org
(Difference between revisions)
(→= Conditional Value Rule) |
|||
Line 2: | Line 2: | ||
− | === Conditional Value Rule == | + | === Conditional Value Rule === |
<syntaxhighlight lang="sql"> | <syntaxhighlight lang="sql"> |
Revision as of 12:17, 27 August 2011
Data-Quality-Monitoring Reports
Conditional Value Rule
SELECT ?i ?condvalue WHERE { ?dqr a dqm:ConditionalValueRule . ?dqr dqm:testedProperty ?tprop . ?dqr dqm:testedClass ?tclass . ?tclass dqm:hasURI ?tclassreal . ?tprop dqm:hasURI ?tpropreal . BIND (smf:buildURI(?tpropreal) AS ?tpropURI) . BIND (smf:buildURI(?tclassreal) AS ?tclassURI) . ?i a ?tclassURI . ?dqr dqm:hasCondition ?cond1 . ?cond1 dqm:conditionalProperty ?cprop . ?cprop dqm:hasURI ?cpropreal . ?cond1 dqm:equals ?condvalue . BIND (smf:buildURI(?cpropreal) AS ?cpropURI) . ?i ?cpropURI ?VALUE . FILTER (str(?VALUE) = str(?condvalue)) . ?i ?tpropURI "" . }