Skip to content

Commit

Permalink
improve dsp:languageOccurrence #22
Browse files Browse the repository at this point in the history
  • Loading branch information
jimkont committed Sep 9, 2014
1 parent c2dbb49 commit 56b766f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ rutg:DSPLANG-OC a rut:TestGenerator ;
# no domain check disallowed
rutg:DSPLANG-OC a rut:TestGenerator ;
dcterms:description """Generate all rdfs:range constrains defined in a schema (when range is wrongly defined)"""@en ;
rut:sparqlGenerator """ select distinct ?P1 ('=' as ?OP) ('' as ?V1) ?DESCRIPTION where {
rut:sparqlGenerator """ select distinct ?P1 ('!=' as ?OP) ('' as ?V1) ?DESCRIPTION where {
?s a dsp:DescriptionTemplate .
?s dsp:statementTemplate/dsp:property ?P1 .
?s dsp:statementTemplate/dsp:literalConstraint/dsp:languageOccurrence ?lang .
Expand All @@ -236,7 +236,7 @@ rutg:DSPLANG-OC a rut:TestGenerator ;
##########################################
# dsp:literalConstraint -> dsp:language
##########################################

# TODO check with domain as well? (needs new pattern)
# no domain check disallowed
rutg:DSPLANG-OC a rut:TestGenerator ;
dcterms:description """Generate all rdfs:range constrains defined in a schema (when range is wrongly defined)"""@en ;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ exdsp:correct2 exdsp:languageOccurrenceMandatoryPropSA "value"@en .
exdsp:correct3 a exdsp:languageOccurrenceDisallowedClass ;
exdsp:languageOccurrenceDisallowedProp "value" .

exdsp:correct4 exdsp:languageOccurrenceDisallowedPropSA "value"@en .
exdsp:correct4 exdsp:languageOccurrenceDisallowedPropSA "value" .
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
@prefix owl: <http://www.w3.org/2002/07/owl#> .

# Sample correct data for testing

exdsp:correct1 a exdsp:languageOccurrenceMandatoryClass ;
exdsp:languageOccurrenceMandatoryProp "value" . # 1 error
# TODO check lang with domain
#exdsp:correct1 a exdsp:languageOccurrenceMandatoryClass ;
# exdsp:languageOccurrenceMandatoryProp "value" . # 1 error

exdsp:correct2 exdsp:languageOccurrenceMandatoryPropSA "value" . # 1 error

exdsp:correct3 a exdsp:languageOccurrenceDisallowedClass ;
exdsp:languageOccurrenceDisallowedProp "value"@it . # 1 error
#exdsp:correct3 a exdsp:languageOccurrenceDisallowedClass ;
# exdsp:languageOccurrenceDisallowedProp "value"@it . # 1 error

exdsp:correct4 exdsp:languageOccurrenceDisallowedPropSA "value" . # 1 error
exdsp:correct4 exdsp:languageOccurrenceDisallowedPropSA "value"@it . # 1 error

0 comments on commit 56b766f

Please sign in to comment.