Laura,
I verified that my file is not the issue. You can take the same
example that you found in the HP paper and try:
pumba@LAPTOP-BL3MCU0O:/mnt/c/Users/pumba/WebRoot/AtomGraph/linkeddatahub-apps/apps/atomgraph/grunddata/data/trix$
riot --syntax=TriX test.xml
15:03:52 ERROR riot :: [line: 3, col: 32] {E202}
Expecting XML start or end element(s). String data
"http://example.org/graph1" not allowed. Maybe there should be an
rdf:parseType='Literal' for embedding mixed XML content in RDF. Maybe
a striping error.
15:03:52 ERROR riot :: [line: 4, col: 10] {E201}
Multiple children of property element
15:03:52 ERROR riot :: [line: 9, col: 10] {E201}
Multiple children of property element
15:03:52 ERROR riot :: [line: 14, col: 10] {E201}
Multiple children of property element
15:03:52 WARN riot :: [line: 18, col: 53] {W102}
unqualified use of rdf:datatype is deprecated.
_:Bbe5af522X2D52c0X2D4879X2Da235X2Da6b9ac7f14ee
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://www.w3.org/2004/03/trix/trix-1/TriX> .
_:B79b951ecX2Dc4efX2D4f28X2D850cX2D5b34b530f5c3
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://www.w3.org/2004/03/trix/trix-1/uri> .
_:Bbe5af522X2D52c0X2D4879X2Da235X2Da6b9ac7f14ee
<http://www.w3.org/2004/03/trix/trix-1/graph>
_:B79b951ecX2Dc4efX2D4f28X2D850cX2D5b34b530f5c3 .
On Sat, Nov 10, 2018 at 3:54 PM Laura Morales <[email protected]> wrote:
>
> Also maybe share some of the file?
>
>
>
> Sent: Saturday, November 10, 2018 at 3:51 PM
> From: ajs6f <[email protected]>
> To: [email protected]
> Subject: Re: Converting TriX to N-Quads with riot
> Just as an experiment, can you verify that changing the extensions to .trix
> and removing the --syntax flag works?
>
> ajs6f
>
> > On Nov 10, 2018, at 9:49 AM, Martynas Jusevičius <[email protected]>
> > wrote:
> >
> > There are some issues with non-canonical XMLLiterals, but in principle
> > the files parse.
> >
> > I think --syntax TriX doesn't work though, as it throws RDF/XML related
> > errors.
> > On Sat, Nov 10, 2018 at 3:32 PM Laura Morales <[email protected]> wrote:
> >>
> >> It should yes. Maybe you have some errors in your file? Did you try riot
> >> --validate yourfile.xml? Maybe you missed the
> >> xmlns="http://www.w3.org/2004/03/trix/trix-1/"?
> >>
> >>
> >>
> >> Sent: Saturday, November 10, 2018 at 3:19 PM
> >> From: "Martynas Jusevičius" <[email protected]>
> >> To: jena-users-ml <[email protected]>
> >> Subject: Re: Converting TriX to N-Quads with riot
> >> Laura's example seems to work, but I thought --syntax should override
> >> the file extension?
> >> On Sat, Nov 10, 2018 at 3:17 PM ajs6f <[email protected]> wrote:
> >>>
> >>> I'd have to go check the code, but Martynas, possibly the file extensions
> >>> are tripping you up?
> >>>
> >>> ajs6f
> >>>
> >>>> On Nov 10, 2018, at 9:10 AM, Laura Morales <[email protected]> wrote:
> >>>>
> >>>> Using the TriX file here
> >>>> http://www.hpl.hp.com/techreports/2004/HPL-2004-56.pdf on page 3 as an
> >>>> example it works for me:
> >>>>
> >>>> 1. copy content to a file example.trix
> >>>> 2. riot --validate example.trix
> >>>> 3. riot --output nq example.trix
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>> Sent: Saturday, November 10, 2018 at 2:31 PM
> >>>>> From: "Martynas Jusevičius" <[email protected]>
> >>>>> To: jena-users-ml <[email protected]>
> >>>>> Subject: Converting TriX to N-Quads with riot
> >>>>>
> >>>>> Hi,
> >>>>>
> >>>>> I have some large TriX files that I want to convert to N-Quads from
> >>>>> command line (and later on to RDF HDT).
> >>>>>
> >>>>> The files validate against the TriX XML schema, so I assume they're
> >>>>> good.
> >>>>> I couldn't find a standalone trix script in the /bin folder, so I tried
> >>>>>
> >>>>> riot --syntax=TriX KORT10.1.xml
> >>>>>
> >>>>> and I got:
> >>>>>
> >>>>> 13:25:02 ERROR riot :: [line: 15, col: 99] {E202}
> >>>>> Expecting XML start or end element(s). String data
> >>>>> "https://localhost:4443/atomgraph/city-graph/graphs/616337ee-f0f9-455f-a838-037fa875dbdd"
> >>>>> not allowed. Maybe there should be an rdf:parseType='Literal' for
> >>>>> embedding mixed XML content in RDF. Maybe a striping error.
> >>>>> 13:25:02 ERROR riot :: [line: 16, col: 15] {E201}
> >>>>> Multiple children of property element
> >>>>> 13:25:02 ERROR riot :: [line: 21, col: 15] {E201}
> >>>>> Multiple children of property element
> >>>>> 13:25:02 ERROR riot :: [line: 26, col: 15] {E201}
> >>>>> Multiple children of property element
> >>>>> 13:25:02 ERROR riot :: [line: 31, col: 15] {E201}
> >>>>> Multiple children of property element
> >>>>> 13:25:02 ERROR riot :: [line: 36, col: 15] {E201}
> >>>>> Multiple children of property element
> >>>>> 13:25:02 WARN riot :: [line: 39, col: 77] {W102}
> >>>>> unqualified use of rdf:datatype is deprecated.
> >>>>> 13:25:02 ERROR riot :: [line: 41, col: 15] {E201}
> >>>>> Multiple children of property element
> >>>>> 13:25:02 ERROR riot :: [line: 46, col: 15] {E201}
> >>>>> Multiple children of property element
> >>>>> 13:25:02 ERROR riot :: [line: 51, col: 15] {E201}
> >>>>> Multiple children of property element
> >>>>> 13:25:02 ERROR riot :: [line: 56, col: 15] {E201}
> >>>>> Multiple children of property element
> >>>>> 13:25:02 ERROR riot :: [line: 61, col: 15] {E201}
> >>>>> Multiple children of property element
> >>>>> 13:25:02 ERROR riot :: [line: 66, col: 15] {E201}
> >>>>> Multiple children of property element
> >>>>> 13:25:02 WARN riot :: [line: 69, col: 77] {W102}
> >>>>> unqualified use of rdf:datatype is deprecated.
> >>>>>
> >>>>> which looks like riot is trying to parse the file as RDF/XML instead.
> >>>>>
> >>>>> Is TriX not supported on command line?
> >>>>>
> >>>>>
> >>>>> Martynas
> >>>>>
> >>>
>