Skip to content

Commit

Permalink
Add testcase for whitespace between string literal and datatype iri
Browse files Browse the repository at this point in the history
  • Loading branch information
Michiel-s committed Jan 17, 2025
1 parent 8566fa9 commit 544cf74
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/fixtures/turtle/gh52-sweetrdf-whitespace-langtag.out
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
<http://example.org/#a> <http://www.w3.org/2000/01/rdf-schema#label> "Test"@en .
<http://example.org/#a> <http://www.w3.org/2000/01/rdf-schema#label> "Test"^^<http://www.w3.org/2001/XMLSchema#string> .
4 changes: 4 additions & 0 deletions test/fixtures/turtle/gh52-sweetrdf-whitespace-langtag.ttl
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xs: <http://www.w3.org/2001/XMLSchema#> .
@prefix : <http://example.org/#> .

# Allow whitespace between literal and language tag
:a rdfs:label "Test" @en .

# Allow whitespace between literal and datatype IRI
:a rdfs:label "Test" ^^xs:string .

0 comments on commit 544cf74

Please sign in to comment.