0 <= age
type: SPARQLRule
type: EditRule
content: PREFIX leri: <http://lod.cedar-project.nl:8888/linked-edit-rules/resource/> PREFIX sdmx-dimension: <http://purl.org/linked-data/sdmx/2009/dimension#> PREFIX qb: <http://purl.org/linked-data/cube#> PREFIX ler: <http://bit.ly/linked-edit-rules#> IF { ?obs a qb:Observation . ?obs sdmx-dimension:age ?age . FILTER (?age < 0) } THEN { ?obs ler:inconsistentWith leri:num1 . }
scope: Observation
component: age
comment: Age must be zero or a positive number
creator: www.albertmeronyo.org
date: 2015-01-08T16:03:40+01:00

0 < height
type: SPARQLRule
type: EditRule
content: PREFIX leri: <http://lod.cedar-project.nl:8888/linked-edit-rules/resource/> PREFIX eg: <http://example.org/ns#> PREFIX qb: <http://purl.org/linked-data/cube#> PREFIX ler: <http://bit.ly/linked-edit-rules#> IF { ?obs a qb:Observation . ?obs eg:height ?height . FILTER (?height <= 0) } THEN { ?obs ler:inconsistentWith leri:num2 . }
scope: Observation
component: height
comment: Height must be a positive number
creator: www.albertmeronyo.org
date: 2015-01-08T16:03:40+01:00

age <= 150
type: SPARQLRule
type: EditRule
content: PREFIX leri: <http://lod.cedar-project.nl:8888/linked-edit-rules/resource/> PREFIX eg: <http://example.org/ns#> PREFIX sdmx-dimension: <http://purl.org/linked-data/sdmx/2009/dimension#> PREFIX qb: <http://purl.org/linked-data/cube#> PREFIX ler: <http://bit.ly/linked-edit-rules#> IF { ?obs a qb:Observation . ?obs sdmx-dimension:age ?age . FILTER (?age > 150) } THEN { ?obs ler:inconsistentWith leri:num3 . }
scope: Observation
component: age
comment: Age can't be greater than 150
creator: www.albertmeronyo.org
date: 2015-01-08T16:03:40+01:00

yearsmarried <= age
type: SPARQLRule
type: EditRule
content: PREFIX leri: <http://lod.cedar-project.nl:8888/linked-edit-rules/resource/> PREFIX eg: <http://example.org/ns#> PREFIX qb: <http://purl.org/linked-data/cube#> PREFIX sdmx-dimension: <http://purl.org/linked-data/sdmx/2009/dimension#> PREFIX ler: <http://bit.ly/linked-edit-rules#> IF { ?obs a qb:Observation . ?obs sdmx-dimension:age ?age . ?obs eg:yearsMarried ?yearsMarried . FILTER (?yearsMarried > ?age) } THEN { ?obs ler:inconsistentWith leri:num4 . }
scope: Observation
component: age
component: yearsMarried
comment: A person can't be married more years than her age
creator: www.albertmeronyo.org
date: 2015-01-08T16:03:40+01:00

if( agegroup == 'child' ) status != 'married'
type: SPARQLRule
type: EditRule
content: PREFIX leri: <http://lod.cedar-project.nl:8888/linked-edit-rules/resource/> PREFIX eg: <http://example.org/ns#> PREFIX qb: <http://purl.org/linked-data/cube#> PREFIX sdmx-dimension: <http://purl.org/linked-data/sdmx/2009/dimension#> PREFIX sdmx-code: <http://purl.org/linked-data/sdmx/2009/code#> PREFIX ler: <http://bit.ly/linked-edit-rules#> IF { ?obs a qb:Observation . ?obs sdmx-dimension:civilStatus ?civilStatus . ?obs eg:agegroup ?ageGroup . FILTER (?ageGroup = eg:child && ?civilStatus = sdmx-code:status-M) } THEN { ?obs ler:inconsistentWith leri:cat5 . }
scope: Observation
component: civilStatus
component: agegroup
comment: Children can't be married
creator: www.albertmeronyo.org
date: 2015-01-08T16:03:40+01:00

if( age < yearsmarried + 17 ) !( status %in% c('married', 'widowed') )
type: SPARQLRule
type: EditRule
content: PREFIX leri: <http://lod.cedar-project.nl:8888/linked-edit-rules/resource/> PREFIX eg: <http://example.org/ns#> PREFIX qb: <http://purl.org/linked-data/cube#> PREFIX sdmx-dimension: <http://purl.org/linked-data/sdmx/2009/dimension#> PREFIX sdmx-code: <http://purl.org/linked-data/sdmx/2009/code#> PREFIX ler: <http://bit.ly/linked-edit-rules#> IF { ?obs a qb:Observation . ?obs sdmx-dimension:civilStatus ?civilStatus . ?obs eg:yearsMarried ?yearsMarried . ?obs sdmx-dimension:age ?age . FILTER ((?age < ?yearsMarried + 17) && (?civilStatus = sdmx-code:status-M || ?civilStatus = sdmx-code:status-W)) } THEN { ?obs ler:inconsistentWith leri:mix6 . }
scope: Observation
component: age
component: civilStatus
component: yearsMarried
comment: An underage can't be married nor widowed
creator: www.albertmeronyo.org
date: 2015-01-08T16:03:40+01:00

if( age < 18 ) !( agegroup %in% c('adult', 'elderly') )
type: SPARQLRule
type: EditRule
content: PREFIX leri: <http://lod.cedar-project.nl:8888/linked-edit-rules/resource/> PREFIX eg: <http://example.org/ns#> PREFIX qb: <http://purl.org/linked-data/cube#> PREFIX sdmx-dimension: <http://purl.org/linked-data/sdmx/2009/dimension#> PREFIX ler: <http://bit.ly/linked-edit-rules#> IF { ?obs a qb:Observation . ?obs eg:agegroup ?ageGroup . ?obs sdmx-dimension:age ?age . FILTER ((?age < 18) && (?ageGroup = eg:adult || ?ageGroup = eg:elderly)) } THEN { ?obs ler:inconsistentWith leri:mix7 . }
scope: Observation
component: age
component: agegroup
comment: An underage can't be an adult nor an elderly
creator: www.albertmeronyo.org
date: 2015-01-08T16:03:40+01:00

if( 18 <= age & age < 65 ) !( agegroup %in% c('child', 'elderly') )
type: SPARQLRule
type: EditRule
content: PREFIX leri: <http://lod.cedar-project.nl:8888/linked-edit-rules/resource/> PREFIX eg: <http://example.org/ns#> PREFIX qb: <http://purl.org/linked-data/cube#> PREFIX sdmx-dimension: <http://purl.org/linked-data/sdmx/2009/dimension#> PREFIX ler: <http://bit.ly/linked-edit-rules#> IF { ?obs a qb:Observation . ?obs eg:agegroup ?ageGroup . ?obs sdmx-dimension:age ?age . FILTER ((18 <= ?age && ?age < 65) && (?ageGroup = eg:child || ?ageGroup = eg:elderly)) } THEN { ?obs ler:inconsistentWith leri:mix8 . }
scope: Observation
component: age
component: agegroup
comment: Persons aged between 18 and 64 can't be children nor elderly
creator: www.albertmeronyo.org
date: 2015-01-08T16:03:40+01:00

if( 65 <= age ) !( agegroup %in% c('adult', 'child') )
type: SPARQLRule
type: EditRule
content: PREFIX leri: <http://lod.cedar-project.nl:8888/linked-edit-rules/resource/> PREFIX eg: <http://example.org/ns#> PREFIX qb: <http://purl.org/linked-data/cube#> PREFIX sdmx-dimension: <http://purl.org/linked-data/sdmx/2009/dimension#> PREFIX ler: <http://bit.ly/linked-edit-rules#> IF { ?obs a qb:Observation . ?obs eg:agegroup ?ageGroup . ?obs sdmx-dimension:age ?age . FILTER ((65 <= ?age) && (?ageGroup = eg:adult || ?ageGroup = eg:child)) } THEN { ?obs ler:inconsistentWith leri:mix9 . }
scope: Observation
component: age
component: agegroup
comment: People above 65 years old can't be adults nor children
creator: www.albertmeronyo.org
date: 2015-01-08T16:03:40+01:00