PREFIX leri: <http://lod.cedar-project.nl:8888/linked-edit-rules/resource/> PREFIX cedarterms: <http://bit.ly/cedar#> PREFIX qb: <http://purl.org/linked-data/cube#> PREFIX ler: <http://bit.ly/linked-edit-rules#> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> IF { ?obs a qb:Observation . ?measure a qb:MeasureProperty . ?obs ?measure ?price . FILTER (datatype(?price) != xsd:decimal) } THEN { ?obs ler:inconsistentWith leri:priwa1 . }
class(price) == 'decimal'
A price must be a decimal number
PREFIX leri: <http://lod.cedar-project.nl:8888/linked-edit-rules/resource/> PREFIX cedarterms: <http://bit.ly/cedar#> PREFIX qb: <http://purl.org/linked-data/cube#> PREFIX ler: <http://bit.ly/linked-edit-rules#> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> IF { ?obs a qb:Observation . ?measure a qb:MeasureProperty . ?obs ?measure ?price . FILTER (?price <= 0) } THEN { ?obs ler:inconsistentWith leri:priwa2 . }
price > 0
A price must be a positive number
PREFIX leri: <http://lod.cedar-project.nl:8888/linked-edit-rules/resource/> PREFIX cedarterms: <http://bit.ly/cedar#> PREFIX qb: <http://purl.org/linked-data/cube#> PREFIX ler: <http://bit.ly/linked-edit-rules#> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> PREFIX stardog: <tag:stardog:api:> IF { ?ds a qb:DataSet . ?measure a qb:MeasureProperty . FILTER (stardog:R("ks.test", "log(rnorm)", ?ds, ?measure) <= 0.05) } THEN { ?obs ler:inconsistentWith leri:priwa3 . }
ks.test(ds, log(rnorm))$p.value > 0.005
Prices must follow a log-normal distribution