Construct Quads on Apache Jena Fuseki

2020-12-02 Thread Ahmed Helal
Hello everyone, I am trying to construct Quads following the documentation on this page: https://jena.apache.org/documentation/query/construct-quad.html However, when I write my script on Apache Jena Fuseki, it complains. I have attached a screenshot below [cid:e72c17a5-74ef-43be-973e-da5b14417d

Re: Merging ttl files

2020-12-02 Thread Alexis Armin Huf
Assuming you are on a unix machine and a large .nt file is OK, you could call riot once for each ttl, but always appending to a single file: rm -f big_single_file.nt # remove old file for i in *.ttl ; do echo "Converting $i" /path/to/apache-jena/bin/riot --out=ntriples "$i" >> big_single_file.

Merging ttl files

2020-12-02 Thread Hashim Khan
Hi, I want to merge dboedia3.5.1 dumps of ttl format into one single file, as the triple store i am working on, can upload one file, but has no capability of wild card so that to use *.ttl etc. Anyone can help please.

Re: SHACL demo files

2020-12-02 Thread Andy Seaborne
Th examples show how to use the API. "shapes.ttl" and "data?.ttl" stand for the files you wish to use with the API. Andy On 02/12/2020 19:24, Erich Bremer wrote: For the two examples at: https://github.com/apache/jena/tree/master/jena-shacl/src/main/java/org/apache/jena/shacl/examples

Re: TDB(1) : get prefixes map ?

2020-12-02 Thread Andy Seaborne
On 02/12/2020 17:33, Jean-Marc Vanel wrote: I thought I could retrieve the prefix map from TDB 1 with dataset.getDefaultModel().getNsPrefixMap() PrefixMapping prefixMapping = dataset.getDefaultModel(); PrefixMapping is a subinterface of Model. See https://jena.apache.org/documentation/jav

Re: 3.17

2020-12-02 Thread Andy Seaborne
On 02/12/2020 19:21, Erich Bremer wrote: I don't see it here: https://mvnrepository.com/artifact/org.apache.jena/apache-jena-libs That's isn't maven central which is: https://repo1.maven.org/maven2/org/apache/jena/ https://mvnrepository.com/ is an independent website [1] that presumably c

Re: 3.17

2020-12-02 Thread Erich Bremer
Oh, I saw the announcement. It just didn't pull from maven central initially when I built my project. It hadn't happened before when new releases had occurred. I have been building jena from source locally lately and it may have had something to do with it. All is well now. Thanks! - Erich On

Re: 3.17

2020-12-02 Thread Jean-Marc Vanel
The announcement mail is here : https://lists.apache.org/thread.html/r911197ad367bde08373614fb6a74a72cef29d886289fc2ff9f6b0251%40%3Cusers.jena.apache.org%3E Jean-Marc Vanel +33 (0)6 89 16 29 52 Le mer. 2 déc.

SHACL demo files

2020-12-02 Thread Erich Bremer
For the two examples at: https://github.com/apache/jena/tree/master/jena-shacl/src/main/java/org/apache/jena/shacl/examples where are the shapes.ttl and data1.ttl files? Are there versions of them that work for the demo? - Erich

Re: 3.17

2020-12-02 Thread Erich Bremer
Might have been a cache lag or something. Just tried rebuilding my project now with 3.17.0 and it was able to download. - E On Wed, Dec 2, 2020 at 2:21 PM Erich Bremer wrote: > I don't see it here: > https://mvnrepository.com/artifact/org.apache.jena/apache-jena-libs > > Let me look around more

Re: 3.17

2020-12-02 Thread Erich Bremer
I don't see it here: https://mvnrepository.com/artifact/org.apache.jena/apache-jena-libs Let me look around more... - E On Wed, Dec 2, 2020 at 1:43 PM Jean-Marc Vanel wrote: > 3.17.0 has been announced on this list; > it works for me with SBT; should work also with Maven :) > > Jean-Marc Vanel

Re: 3.17

2020-12-02 Thread Jean-Marc Vanel
3.17.0 has been announced on this list; it works for me with SBT; should work also with Maven :) Jean-Marc Vanel +33 (0)6 89 16 29 52 Le mer. 2 déc. 2020 à 19:38, Erich Bremer a écrit : > How long before 3.1

3.17

2020-12-02 Thread Erich Bremer
How long before 3.17 is available via maven artifacts? I saw the 3.17 release on github. - Erich

Re: TDB(1) : get prefixes map ?

2020-12-02 Thread Jean-Marc Vanel
I thought I could retrieve the prefix map from TDB 1 with dataset.getDefaultModel().getNsPrefixMap() but that was a mistake; really I don't know how to get the prefix map. I started a project called jena-examples, that may grow with help from the community. Here is the Java code that I tried to re

Re: SHACL, target all nodes, vocabulary element check,

2020-12-02 Thread Martin G . Skjæveland
Thanks! I did not understand your tip on sh:path, but the sh:targetNode tip did the trick. This works: _:RDFSVocabularyTokenShape a sh:NodeShape ; sh:targetNode ex:ANY_NODE ; ## matches any node sh:name "RDFS vocabulary element." ; sh:message "Unrecognised RDFS vocabulary element. Check s

Re: Performance regressions in Jena and TDB2

2020-12-02 Thread Andy Seaborne
On 02/12/2020 10:07, Osma Suominen wrote: Hi Andy! Andy Seaborne kirjoitti 1.12.2020 klo 23.15: There is no reason I can see why the special case of exactly one "FROM" can't be handled specially. It masks all named graphs but is a rewrite from triples, that will be fine. Right. Is this wo

Re: SHACL, target all nodes, vocabulary element check,

2020-12-02 Thread Andy Seaborne
Hi Martin, I am guessing this isbecause advanced features (https://www.w3.org/TR/shacl-af) are not supported? Correct. A trick ("pattern") is to use sh:targetNode because that always gets triggered, whether the object node is in the data or not and even if the data graph is empty. --- I

SHACL, target all nodes, vocabulary element check,

2020-12-02 Thread Martin G . Skjæveland
Hi all, using SHACL I am trying to implement a check for identifying typically typos when using standard vocabularies such as RDF, RDFS and OWL, e.g., rdf:label should be rdf*s*:label. Here is an attempt at finding IRIs in rdfs namespace but that are not defined in the standard vocabulary:

Re: Performance regressions in Jena and TDB2

2020-12-02 Thread Osma Suominen
Hi Andy! Andy Seaborne kirjoitti 1.12.2020 klo 23.15: There is no reason I can see why the special case of exactly one "FROM" can't be handled specially. It masks all named graphs but is a rewrite from triples, that will be fine. Right. Is this worth opening a JIRA issue? TDB1: 0.825s TDB2: