Skip to content

Commit 2b35822

Browse files
niklaslafs
authored andcommitted
Add test for entailment of literal type
1 parent f6b20f4 commit 2b35822

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
2+
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
3+
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
4+
PREFIX : <http://example.com/ns#>
5+
6+
:a :b _:x .
7+
_:x rdf:type xsd:integer .

rdf/rdf12/rdf-semantics/manifest.ttl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ trs:manifest a mf:Manifest;
4949
trs:constrained-bnodes-in-triple-term-object
5050
trs:constrained-bnodes-in-triple-term-fail
5151
trs:constrained-bnodes-on-literal
52+
trs:literal-type
5253
trs:malformed-literal-control
5354
trs:malformed-literal
5455
trs:malformed-literal-accepted
@@ -235,6 +236,16 @@ trs:triple-terms-no-spurious a mf:NegativeEntailmentTest;
235236
mf:unrecognizedDatatypes ();
236237
rdft:approval rdft:NotClassified .
237238

239+
trs:literal-type a mf:PositiveEntailmentTest;
240+
rdfs:comment "Literals denote instances of their datatype.";
241+
mf:action <canonical-literal-control.ttl>;
242+
mf:entailmentRegime "RDF";
243+
mf:name "literal-type";
244+
mf:recognizedDatatypes (xsd:integer);
245+
mf:result <literal-type.ttl>;
246+
mf:unrecognizedDatatypes ();
247+
test:approval test:NotClassified .
248+
238249
trs:malformed-literal a mf:PositiveEntailmentTest;
239250
rdfs:comment "Malformed literals are allowed in triple terms, but cause inconsistency.";
240251
mf:action <malformed-literal.ttl>;

0 commit comments

Comments
 (0)