forked from easyrdf/easyrdf
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Allow dot in middle of a prefixed name See #51 * Update test testBad07 accordingly * Add test to check for bad syntax with dot as last char of QName * Prevent last char of QName to be a dot
- Loading branch information
Showing
6 changed files
with
44 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# paths are not in turtle | ||
@prefix : <http://example.org/stuff/1.0/> . | ||
:a.:b.:c . | ||
:a^:b^:c . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
@prefix : <http://example.org/#> . | ||
|
||
# A dot can't be the first nor the last character of the "after the semicolon part of a prefixed name" but is allowed in the middle | ||
# See https://www.w3.org/TR/turtle/#grammar-production-PN_LOCAL | ||
# See https://github.com/sweetrdf/easyrdf/issues/51 | ||
# The triples below should not parse! | ||
:SubjectWithEndDot. :predicate :Object . | ||
:Subject :predicateWithEndDot. :Object . | ||
:Subject :predicate :ObjectWithEndDot. . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<http://example.org/#Subject.WithADot> <http://example.org/#predicate.withADot> <http://example.org/#Object.WithADot> . | ||
<http://example.org/#Subject.With.Dots> <http://example.org/#predicate.with.dots> <http://example.org/#Object.With.Dots> . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@prefix : <http://example.org/#> . | ||
|
||
# A dot can't be the first nor the last character of the "after the semicolon part of a prefixed name" but is allowed in the middle | ||
# See https://www.w3.org/TR/turtle/#grammar-production-PN_LOCAL | ||
# See https://github.com/sweetrdf/easyrdf/issues/51 | ||
:Subject.WithADot :predicate.withADot :Object.WithADot . | ||
:Subject.With.Dots :predicate.with.dots :Object.With.Dots . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters