Data Requirements Consistency Checks

From SemWebQuality.org
(Difference between revisions)
Jump to: navigation, search
(Created page with "<syntaxhighlight lang="sparql"> PREFIX dqm:<http://purl.org/dqm-vocabulary/v1.1/dqm#> SELECT (?s AS ?uniquevaluereq) (?s2 AS ?nonuniquenessreq) WHERE{ ?s a dqm:UniqueValueRule . ...")
 
Line 1: Line 1:
<syntaxhighlight lang="sparql">
+
<syntaxhighlight lang="n3">
 
PREFIX dqm:<http://purl.org/dqm-vocabulary/v1.1/dqm#>
 
PREFIX dqm:<http://purl.org/dqm-vocabulary/v1.1/dqm#>
 
SELECT (?s AS ?uniquevaluereq) (?s2 AS ?nonuniquenessreq)
 
SELECT (?s AS ?uniquevaluereq) (?s2 AS ?nonuniquenessreq)

Revision as of 10:33, 17 June 2012

PREFIX dqm:<http://purl.org/dqm-vocabulary/v1.1/dqm#>
SELECT (?s AS ?uniquevaluereq) (?s2 AS ?nonuniquenessreq)
WHERE{
?s a dqm:UniqueValueRule .
?s dqm:testedClass ?class1 .
?class1 dqm:hasURI ?class1URI .
?s dqm:testedProperty1 ?prop1 .
?prop1 dqm:hasURI ?prop1URI .
OPTIONAL{
?s2 a dqm:PropertyRequirement .
?s2 dqm:testedClass ?class2 .
?class2 dqm:hasURI ?class2URI .
?s2 dqm:testedProperty1 ?prop2 .
?prop2 dqm:hasURI ?prop2URI .
FILTER(str(?prop1URI) = str(?prop2URI) && str(?class1URI) = str(?class2URI) && ?s != ?s2)
MINUS{
?s2 a dqm:UniqueValueRule
}
}
FILTER(bound(?prop2URI))
}
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox