cat kaunas.ttl | riot --syntax ttl --base="https://linkeddatahub.com:4443/demo/city-graph/"
That worked. trig etc. scripts are broken re. stdin input though. On Thu, Nov 22, 2018 at 10:55 PM Andy Seaborne <[email protected]> wrote: > > >> What is happening here? Can't use 3.9.0 as all our CLI scripts would > break. > > You can use "riot --syntax ttl" > > Andy > > On 22/11/2018 20:22, Martynas Jusevičius wrote: > > Sorry, this is the correct Turtle file: > > > > @prefix def: <ns/default#> . > > @prefix dct: <http://purl.org/dc/terms/> . > > @prefix dh: <https://www.w3.org/ns/ldt/document-hierarchy/domain#> . > > _:container a def:Container . > > _:container dct:title "Kaunas" . > > _:container dh:slug "kaunas" . > > On Thu, Nov 22, 2018 at 9:20 PM Martynas Jusevičius > > <[email protected]> wrote: > >> > >> Hi, > >> > >> I have such a simple Turtle file called kaunas.ttl: > >> > >> ./create-container.sh \ > >> -b https://linkeddatahub.com:4443/demo/city-graph/ \ > >> -f "cert.pem" \ > >> -p "test1234" \ > >> --title "Kaunas" \ > >> --slug "kaunas" \ > >> https://linkeddatahub.com:4443/demo/city-graph/ > >> > >> It parses from command line using 3.6.0: > >> > >> pumba@LAPTOP-BL3MCU0O:/mnt/c/Users/pumba/WebRoot/AtomGraph/LinkedDataHub/scripts$ > >> export JENA_HOME="/mnt/c/Users/pumba/WebRoot/apache-jena-3.6.0" > >> pumba@LAPTOP-BL3MCU0O:/mnt/c/Users/pumba/WebRoot/AtomGraph/LinkedDataHub/scripts$ > >> cat kaunas.ttl | turtle > >> --base="https://linkeddatahub.com:4443/demo/city-graph/" > >> _:Be9c8204f16652e5daab8df47ee02facf > >> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> > >> <https://linkeddatahub.com:4443/demo/city-graph/ns/default#Container> > >> . > >> _:Be9c8204f16652e5daab8df47ee02facf <http://purl.org/dc/terms/title> > >> "Kaunas" . > >> _:Be9c8204f16652e5daab8df47ee02facf > >> <https://www.w3.org/ns/ldt/document-hierarchy/domain#slug> "kaunas" . > >> > >> But fails using 3.9.0: > >> > >> pumba@LAPTOP-BL3MCU0O:/mnt/c/Users/pumba/WebRoot/AtomGraph/LinkedDataHub/scripts$ > >> export JENA_HOME="/mnt/c/Users/pumba/WebRoot/apache-jena-3.9.0" > >> pumba@LAPTOP-BL3MCU0O:/mnt/c/Users/pumba/WebRoot/AtomGraph/LinkedDataHub/scripts$ > >> cat kaunas.ttl | turtle > >> --base="https://linkeddatahub.com:4443/demo/city-graph/" > >> 20:16:32 ERROR riot :: [line: 1, col: 1 ] Expected > >> BNode or IRI: Got: [DIRECTIVE:prefix] > >> pumba@LAPTOP-BL3MCU0O:/mnt/c/Users/pumba/WebRoot/AtomGraph/LinkedDataHub/scripts$ > >> > >> What is happening here? Can't use 3.9.0 as all our CLI scripts would break. > >> > >> Even stranger that passing the file as an argument and not a stream > >> works on both versions: > >> > >> turtle --base="https://linkeddatahub.com:4443/demo/city-graph/" kaunas.ttl > >> > >> The system is Ubuntu 16.04.3 LTS (Windows Subsystem for Linux). > >> > >> Martynas > >> atomgraph.com
