[
https://issues.apache.org/jira/browse/JENA-560?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sarven Capadisli updated JENA-560:
----------------------------------
Description:
Given foo.nt:
{{<http://example.org/1> <http://purl.org/dc/terms/description> "<div
xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\"><p b-c=\"bar\"
a=\"foo\">3</p></div>"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral>
.}}
{quote}
$ java riotcmd.ntriples --validate foo.nt
WARN [line: 1, col: 63] Lexical form '<div
xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><p b-c="bar"
a="foo">3</p></div>' not valid for datatype
http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral
{quote}
Changing the attribute order in p, given bar.nt:
{{<http://example.org/1> <http://purl.org/dc/terms/description> "<div
xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\"><p a=\"foo\"
b-c=\"bar\">3</p></div>"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral>
.}}
{quote}
$ java riotcmd.ntriples --validate bar.nt
{quote}
does not throw warnings.
The expectation is that, foo.nt should not throw an error.
was:
Given foo.nt:
{{<http://example.org/1> <http://purl.org/dc/terms/description> "<div
xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\"><p b-c=\"bar\"
a=\"foo\">3</p></div>"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral>
.}}
{quote}
$ java riotcmd.ntriples --validate foo.nt
WARN [line: 1, col: 63] Lexical form '<div
xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><p b-c="bar"
a="foo">3</p></div>' not valid for datatype
http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral
{quote}
Changing the attribute order in p, given bar.nt:
{{<http://example.org/1> <http://purl.org/dc/terms/description> "<div
xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\"><p a=\"foo\"
b-c=\"bar\">3</p></div>"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral>
.}}
{quote}
$ java riotcmd.ntriples --validate bar.nt
{quote}
does not throw warnings.
The expectation is not that foo.nt should not throw an error.
> jena riotcmd.ntriples XMLLiteral warning for attribute order
> ------------------------------------------------------------
>
> Key: JENA-560
> URL: https://issues.apache.org/jira/browse/JENA-560
> Project: Apache Jena
> Issue Type: Bug
> Components: RIOT
> Affects Versions: Jena 2.11.1
> Environment: Jena: VERSION: 2.11.1-SNAPSHOT
> Jena: BUILD_DATE: 20131006-0756
> ARQ: VERSION: 2.11.1-SNAPSHOT
> ARQ: BUILD_DATE: 20131006-0756
> RIOT: VERSION: 2.11.1-SNAPSHOT
> RIOT: BUILD_DATE: 20131006-0756
> Reporter: Sarven Capadisli
>
> Given foo.nt:
> {{<http://example.org/1> <http://purl.org/dc/terms/description> "<div
> xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\"><p b-c=\"bar\"
> a=\"foo\">3</p></div>"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral>
> .}}
> {quote}
> $ java riotcmd.ntriples --validate foo.nt
> WARN [line: 1, col: 63] Lexical form '<div
> xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><p b-c="bar"
> a="foo">3</p></div>' not valid for datatype
> http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral
> {quote}
> Changing the attribute order in p, given bar.nt:
> {{<http://example.org/1> <http://purl.org/dc/terms/description> "<div
> xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\"><p a=\"foo\"
> b-c=\"bar\">3</p></div>"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral>
> .}}
> {quote}
> $ java riotcmd.ntriples --validate bar.nt
> {quote}
> does not throw warnings.
> The expectation is that, foo.nt should not throw an error.
--
This message was sent by Atlassian JIRA
(v6.1#6144)