One occupation position per observation
type: SPARQLRule
type: EditRule
content: 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#> IF { ?obs a qb:Observation. ?obs cedarterms:occupationPosition ?pos1 . ?obs cedarterms:occupationPosition ?pos2 . FILTER (?pos1 != ?pos2) } THEN { ?obs ler:inconsistentWith leri:cedar1 . }
scope: Observation
component: occupationPosition
comment: A population count can't account for two occupation positions at the same time
creator: www.albertmeronyo.org
date: 2015-01-08T16:03:40+01:00

class(population) == 'integer'
type: SPARQLRule
type: EditRule
content: 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 ?population . FILTER (datatype(?population) != xsd:integer) } THEN { ?obs ler:inconsistentWith leri:cedar2 . }
scope: Observation
component: MeasureProperty
component: population
comment: A population count must be an integer number
creator: www.albertmeronyo.org
date: 2015-01-08T16:03:40+01:00

population > 0
type: SPARQLRule
type: EditRule
content: 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 ?population . FILTER (?population <= 0) } THEN { ?obs ler:inconsistentWith leri:cedar3 . }
scope: Observation
component: MeasureProperty
component: population
comment: A population count must be a positive number
creator: www.albertmeronyo.org
date: 2015-01-08T16:03:40+01:00

benford(ds)$p.value > 0.05'
type: SPARQLRule
type: EditRule
content: 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("benford", ?ds, ?measure) <= 0.05) } THEN { ?obs ler:inconsistentWith leri:cedar4 . }
scope: DataSet
component: MeasureProperty
component: population
comment: Population counts must meet Benford's Law
creator: www.albertmeronyo.org
date: 2015-01-08T16:03:40+01:00