RDFG vocabulary

2023-05-09 Thread Erich Bremer
Does anyone use this particular vocabulary for named graphs? http://www.w3.org/2004/03/trix/rdfg-1/ Jena doesn't seem to have a convenience library for it like RDF and RDFS. - Erich

Re: xsd:DateTime not working

2022-05-19 Thread Erich Bremer
teTime() cased wrong > - no ":" in "0500" > > On Thu, May 19, 2022 at 4:33 PM Erich Bremer wrote: > > > > I'm trying to do a sparql update on a Model in Jena. > > > > The below query, against Virtuoso will create "2014-06-05T10:10:10" &g

xsd:DateTime not working

2022-05-19 Thread Erich Bremer
I'm trying to do a sparql update on a Model in Jena. The below query, against Virtuoso will create "2014-06-05T10:10:10" correctly, but I get null using Jena's SPARQL. PREFIX xsd: select * where {graph ?g {?s ?p ?o} bind (xsd:DateTime("2014-06-05T10:10:10")

Re: RDF Connection

2022-05-17 Thread Erich Bremer
https://github.com/apache/jena/issues/1318 On Mon, May 16, 2022 at 3:59 PM Erich Bremer wrote: > Will do. - Erich > > On Mon, May 16, 2022 at 3:43 PM Andy Seaborne wrote: > >> Hi - could you raise an issue for this please. >> >> There's a backlog at th

Re: RDF Connection

2022-05-16 Thread Erich Bremer
t; con.query(Query) form and not in the con.query(String) form - add a \nb > and I expect it will also break. > > On 16/05/2022 17:47, Erich Bremer wrote: > > I changed > > QueryExecution qe = con.query(query); > > to > > QueryExecution qe = con.query("select ?s where {?s ?p

Re: RDF Connection

2022-05-16 Thread Erich Bremer
I changed QueryExecution qe = con.query(query); to QueryExecution qe = con.query("select ?s where {?s ?p ?o} limit 10"); and it works. A bug in the former method? - Erich On Mon, May 16, 2022 at 12:31 PM Erich Bremer wrote: > Thanks Andy, this is a huge help. > using this

Re: RDF Connection

2022-05-16 Thread Erich Bremer
22.1-b06) OpenJDK 64-Bit Server VM GraalVM CE 22.1.0 (build 17.0.3+7-jvmci-22.1-b06, mixed mode, sharing) - Erich On Mon, May 16, 2022 at 11:49 AM Andy Seaborne wrote: > > > On 16/05/2022 16:11, Erich Bremer wrote: > > It seems in Jena 4.3.X forward HttpClient in RDFC

RDF Connection

2022-05-16 Thread Erich Bremer
It seems in Jena 4.3.X forward HttpClient in RDFConnectionRemoteBuilder was changed from org.apache.http.client.HttpClient to java.net.http.HttpClient. The latter doesn't appear to support Digest Authentication. Is there support for Digest authentication in 4.3.X forward? I was able to do it

Re: Jena Permissions

2021-06-14 Thread Erich Bremer
I answered my own question. - Yes. - E On Mon, Jun 14, 2021 at 11:00 AM Erich Bremer wrote: > Is Jena Permissions compatible with TDB/TDB2? - Erich >

Jena Permissions

2021-06-14 Thread Erich Bremer
Is Jena Permissions compatible with TDB/TDB2? - Erich

Re: Returning a Triple from a QuerySolution for each Solution Variable

2020-12-22 Thread Erich Bremer
your question, but should you just use SPARQL > CONSTRUCT queries if you want to get triples? > > On 22.12.20 14:34, Erich Bremer wrote: > > After executing a select statement like: > > > > select ?person ?LastName ?FirstName ?Street ?City ?State ?Zip where > > {?pers

Returning a Triple from a QuerySolution for each Solution Variable

2020-12-22 Thread Erich Bremer
After executing a select statement like: select ?person ?LastName ?FirstName ?Street ?City ?State ?Zip where {?person :LastName; :FirstName ?FirstName; :Address ?Address . ?Address :Street ?Street; :City ?City; :State ?State; :Zip ?Zip} and iterating through the ResultSet I

Re: adding an expression to a Query

2020-12-18 Thread Erich Bremer
Saw ExpreUtil.parse and stopped reading. Used the second part of your email and it worked fine. TGIF On Fri, Dec 18, 2020 at 2:17 PM Erich Bremer wrote: > Using this will throw a "Exception in thread "main" > org.apache.jena.query.QueryParseException: Line 1, column 2: A

Re: adding an expression to a Query

2020-12-18 Thread Erich Bremer
Using this will throw a "Exception in thread "main" org.apache.jena.query.QueryParseException: Line 1, column 2: Aggregate expression not legal at this point". So you may be right to use a query builder :-) On Fri, Dec 18, 2020 at 1:29 PM Andy Seaborne wrote: > > &g

adding an expression to a Query

2020-12-18 Thread Erich Bremer
How would one create an Expr in order to add an expression like this: SPARQLParser p = SPARQLParser.createParser(Syntax.syntaxSPARQL_11); Query query = new Query(); p.parse(query, "select ?year where {?s :Year ?year; :Fruit ?fruit} group by ?year order by ?year");

Re: SHACL demo files

2020-12-03 Thread Erich Bremer
Okay, I will try to make them myself then. Thanks Andy! - Erich On Wed, Dec 2, 2020 at 4:34 PM Andy Seaborne wrote: > 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

Re: 3.17

2020-12-02 Thread Erich Bremer
/display?displayuri=http://jmvanel.free.fr/jmv.rdf%23me > > > +33 > (0)6 89 16 29 52 > > > Le mer. 2 déc. 2020 à 20:21, Erich Bremer a écrit : > > > I don't see it here: > > https://mvnrepository.com/artifact/org.apache.jena/apache-jena-libs > > > > L

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

Re: 3.17

2020-12-02 Thread Erich Bremer
t; Jean-Marc Vanel > < > http://semantic-forms.cc:9112/display?displayuri=http://jmvanel.free.fr/jmv.rdf%23me > > > +33 > (0)6 89 16 29 52 > > > Le mer. 2 déc. 2020 à 19:38, Erich Bremer a écrit : > > > How long before 3.17 is available via maven artifacts? I saw the 3.17 > > release on github. - Erich > > >

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

JSON-LD output modification

2020-09-29 Thread Erich Bremer
How can I prune out my blank nodes and go from this: "@graph": [ {"@id": "_:b18","height": "32768","width": "32768"}, {"@id": "_:b3","height": "16384","width": "16384"}, {"@id": "_:b4","height": "4096","width": "4096"}, {"@id": "http://www.ebremer.com/a","sizes": {"@list":

Re: writing from Model to JSON-LD without a base

2020-09-18 Thread Erich Bremer
Thank you very much for your help Andy! - Erich On Fri, Sep 18, 2020 at 9:28 AM Erich Bremer wrote: > Yes, just tested the code and does exactly that. The URL specified in > "base" replaces it out with "./". > The "./" is used in the creation

Re: writing from Model to JSON-LD without a base

2020-09-18 Thread Erich Bremer
n Fri, Sep 18, 2020 at 9:25 AM Andy Seaborne wrote: > > > On 18/09/2020 13:47, Erich Bremer wrote: > > I want the base to be "./", meaning for: > > > > @prefix schema: <http://schema.org/> . > > @prefix xsd: <http://www.w3.org/2001/XMLSchema#>

Re: writing from Model to JSON-LD without a base

2020-09-18 Thread Erich Bremer
], "@graph": [ { "@type": "CreativeWork", "description": "An impressive description", "name": "This is an example of JSONLD", "@id": "./" } ] } On Fri, Sep 18, 2020 at 8:47 AM Erich Bremer wrot

Re: writing from Model to JSON-LD without a base

2020-09-18 Thread Erich Bremer
jh.me/; with "./" On Fri, Sep 18, 2020 at 4:44 AM Andy Seaborne wrote: > > RDFWriter.create() > .base(baseURI) // <-- Valid URI. > .lang(Lang.JSONLD) > .source(model) > .output(System.out); > > On 17/09/2020 22:44, Erich Bremer wrote: >

writing from Model to JSON-LD without a base

2020-09-17 Thread Erich Bremer
I have JSONLD that looks like this: { "@context": [ "https://schema.org/; ], "@graph": [ { "@type": "CreativeWork", "description": "An impressive description", "name": "This is an example of JSONLD", "@id": "./" } ] } I can import it into Jena and convert to Turtle fine. How can I write from a

bug in JSON LD parsing

2020-09-15 Thread Erich Bremer
The base URI of a jsonLD file doesn't appear to be swapped out correctly. The first "./" is replaced correctly with the specified base, but after that, blank nodes that don't end up in the final graph seem to be created. See: https://github.com/ebremer/jenabug using the following code to read in

Re: JSONLD and base URL

2020-03-08 Thread Erich Bremer
oject xsd4ld - doing XSD datatypes. > > > On 04/03/2020 23:39, Erich Bremer wrote: > > Andy - done. > > > > On Wed, Mar 4, 2020 at 12:25 PM Andy Seaborne wrote: > > > >> java.net.URI is not perfect and it is also a mixture of RFC2396, RFC3896 > >&g

Re: JSONLD and base URL

2020-03-04 Thread Erich Bremer
= IRIResolver.resolve("picture.jpg", "http://mysite.net; ); >System.out.println(iri); > > but jsonld-java uses java.net.URI. > > Erich - please could you raise an issue with jsonld-java? > > Andy > > Or https://github.com/afs/iri4ld > > On 04/03/

Re: JSONLD and base URL

2020-03-04 Thread Erich Bremer
ally ends with a /. Don’t know if this is the best reference, > but close: > https://tools.ietf.org/html/rfc3986#section-6.2.3 > > You need to check the URI RFC and its resolution algorithm. > > On Wed, 4 Mar 2020 at 16.57, Erich Bremer wrote: > > > This also works: >

Re: JSONLD and base URL

2020-03-04 Thread Erich Bremer
and a blank node is formed. Should URI.resolve assume a "/" if no trailing nor leading "/" is present? - Erich On Wed, Mar 4, 2020 at 10:52 AM Erich Bremer wrote: > The program works if I specify the base with a trailing slash as " > http://mysite.net/; > I ran throug

Re: JSONLD and base URL

2020-03-04 Thread Erich Bremer
.java#L283 In the short code segment here, you can see: URI uri = new URI("http://mysite.net;); System.out.println(uri.resolve("picture.jpg")); Output: http://mysite.netpicture.jpg On Wed, Mar 4, 2020 at 10:05 AM Erich Bremer wrote: > Same thing: > Source

Re: JSONLD and base URL

2020-03-04 Thread Erich Bremer
nputStream(json.getBytes(Charset.forName("UTF-8"))); Object jsonObject = JsonUtils.fromInputStream(inputStream); JsonLdOptions options = new JsonLdOptions("http://mysite.net;); System.out.println("Base : "+options.getBase()); //Object compact = JsonLdProces

Re: JSONLD and base URL

2020-03-04 Thread Erich Bremer
library so you could try and > reproduce your test case just using their library directly which would > determine if it is their bug or our bug > > Rob > > On 04/03/2020, 00:11, "Erich Bremer" wrote: > > I'm trying to use a "@id": "./&q

JSONLD and base URL

2020-03-03 Thread Erich Bremer
I'm trying to use a "@id": "./" in a jsonld file and in another triple "@id": "picture.jpg". The "./" will be correctly changed to the base URL, but the "@id": "picture.jpg" just gets dropped and a blank node is created. Below is the code segment that I used to generate this output: {

Re: Fuseki update failing

2018-01-05 Thread Erich Bremer
Nevermind, I got it to work. - Erich On Fri, Jan 5, 2018 at 11:10 PM, Erich Bremer <er...@ebremer.com> wrote: > I'm using embedded fuseki using the method of example 3 on the following > URL: > https://jena.apache.org/documentation/fuseki2/fuseki-embedded.html > &g

Fuseki update failing

2018-01-05 Thread Erich Bremer
I'm using embedded fuseki using the method of example 3 on the following URL: https://jena.apache.org/documentation/fuseki2/fuseki-embedded.html My code is similar in the fashion as: DatasetGraph dsg = ... ;DataService dataService = new DataService(dsg)

Re: sparql update on FusekiEmbeddedServer

2017-12-09 Thread Erich Bremer
use it is and parsed as a query. > > > >Andy > > > > Which version? > > > > On 09/12/17 20:30, Erich Bremer wrote: > >> I'm trying to do a "insert data {}" command on the following end-point > for > >> FusekiEmbeddedServer.

sparql update on FusekiEmbeddedServer

2017-12-09 Thread Erich Bremer
400: Parse error: prefix : <http://www.ebremer.com/pred/> insert data {<http://www.ebremer.com/test123> :name "Erich Bremer"} Encountered " "insert data "" at line 2, column 1. Was expecting one of: "base" ... "prefix" ...

Re: Jetty conflict in Fuseki 2

2017-09-19 Thread Erich Bremer
ependency before > jena-fuseki-embedded in your pom.xml that is pulling another version of > jetty... > > > > From: Erich Bremer <er...@ebremer.com> > To: users@jena.apache.org > Sent: Monday, 4 September 2017 8:01 AM > Subject: Jetty

Jetty conflict in Fuseki 2

2017-09-03 Thread Erich Bremer
Using this pom definition below to pull in the embedded Fuseki pulls in Jetty 9.3.3.v20150827 org.apache.jena jena-fuseki-embedded 2.6.0 However, the pom file for Fuseki lists 9.4.5.v20170502 for Jetty. Why is this? - Erich

Re: RDF Turtle Blank Nodes

2016-10-23 Thread Erich Bremer
1.1 turtle so that Turtle aligned with SPARQL, which has always accepted [ :p "v" ] . Andy On 23/10/16 15:02, Erich Bremer wrote: But isn't "[ :status "happy"]" just the blankNodePropertyList? I would need a corresponding predicateObjectList to go with th

Re: RDF Turtle Blank Nodes

2016-10-23 Thread Erich Bremer
ec: [6] triples ::= subject predicateObjectList | blankNodePropertyList predicateObjectList? It matches blankNodePropertyList predicateObjectList? Andy On 19/10/16 15:24, Erich Bremer wrote: Is this a valid RDF Turtle (https://www.w3.org/TR/turtle/#BNodes) document? - Erich VV

Re: RDF Turtle Blank Nodes

2016-10-23 Thread Erich Bremer
Spec: [6] triples ::= subject predicateObjectList | blankNodePropertyList predicateObjectList? It matches blankNodePropertyList predicateObjectList? Andy On 19/10/16 15:24, Erich Bremer wrote: Is this a valid RDF Turtle (https://www.w3.org/TR/turtle/#BNodes) document? - Erich

problem with a SPARQL Update query

2016-06-10 Thread Erich Bremer
The following SPARQL using Jena 3.1 works fine: construct {?neo ?p ?o} where {?s ?p ?o bind(iri(replace(str(?s),\"^\",\"r\")) as ?neo) filter regex(str(?s),\"(A^2)\",\"i\")} It generates modified versions of any IRI's that contain the illegal character "^". However, the following

Re: Illegal character in IRI

2016-06-07 Thread Erich Bremer
Thanks, that explains that. I'll try to contact the author of the data to update his IRI's.   - Erich On Tue, 7 Jun 2016 17:54:44 +0100 Andy Seaborne <a...@apache.org> wrote: On 06/06/16 18:46, Erich Bremer wrote: Hi, I used Jena (3.0) to read a RDF/XML file and then write that RD

EmbeddedFusekiServer in Fuseki 2

2015-08-10 Thread Erich Bremer
Was EmbeddedFusekiServer dropped from Fuseki 2 or replaced with something equivalent?

Apache Jena 3.0.0

2015-08-07 Thread Erich Bremer
I got an error in creating a new Jena TDB database. The /tdb folder is empty. It worked fine under Jena 2.x Dataset ds = TDBFactory.createDataset(/tdb); Exception in thread main java.lang.NoSuchMethodError:

Error reading in Jena's own JSON-LD

2015-07-23 Thread Erich Bremer
Hi, I downloaded: http://www.w3.org/People/Berners-Lee/card.rdf read and dumped with Jena with: Model m = RDFDataMgr.loadModel(tbl.rdf, Lang.RDFXML); m.write(System.out,JSON-LD); then tried to read the JSON-LD with Jena RDFDataMgr and got the following error: Exception in thread main

Re: Error reading in Jena's own JSON-LD

2015-07-23 Thread Erich Bremer
Andy, yes, my server uses SES. Almost a requirement when using AWS because many SMTP servers blacklist those ranges. On Thu, 23 Jul 2015 16:23:21 +0100 Andy Seaborne a...@apache.org wrote: On 23/07/15 15:58, Erich Bremer wrote: Hi, I downloaded: http://www.w3.org/People/Berners-Lee

Bug in prefix handling JSON-LD

2014-11-18 Thread Erich Bremer
Using Jena 2.12.1: I am getting good turtle serialization from my graph. See snippet here:       bmi:HematoxlyinKurtosis        1.922421^^x:double ;       bmi:HematoxlyinKurtosisGradMag  2.041947^^x:double ;       bmi:HematoxlyinSkewness        -0.343522^^x:double ;      

JSON-LD serializations

2014-11-14 Thread Erich Bremer
Jena converts numbers out as strings when serializing out to JSON-LD. I'm assuming this has something to do with the 53-bit issues.  Is there a way to modify this behavior? - Erich ​ ​

Re: JSON-LD serializations

2014-11-14 Thread Erich Bremer
Seaborne a...@apache.org wrote: On 14/11/14 14:26, Erich Bremer wrote: Jena converts numbers out as strings when serializing out to JSON-LD. I'm assuming this has something to do with the 53-bit issues. Is there a way to modify this behavior? - Erich Complete, minimal example? Version? Because

Re: HttpAuthenticator and Virtuoso

2014-11-08 Thread Erich Bremer
​ On Sun, 02 Nov 2014 16:39:33 + Andy Seaborne a...@apache.org wrote: On 01/11/14 21:34, Erich Bremer wrote: Hi, I have been using jena 2.12.1 and sparql on a virtuoso 7.1 server with success for various select queries. I'm now trying to perform sparql updates using sparql-auth

Prefixes in Trig

2014-11-04 Thread Erich Bremer
Hi, ​ I am writing RDF datasets out from Jena to disk and I noticed that the prefix definitions are missing, meaning, all predicates are written out in the long URI form rather than something compact like foaf:knows with the foaf prefix defined up at the top. The name spaces were defined the

HttpAuthenticator and Virtuoso

2014-11-01 Thread Erich Bremer
is that the default sparql-auth web pages does a GET to the server while Jena is doing a post. Any thoughts? -= Erich Erich Bremer http://www.ebremer.com ​

Jena Spatial

2014-06-02 Thread Erich Bremer
Hi, can Jena spatial handle vanilla 2D Cartesian coordinates (non-geo/gis) or is it just for Latitude/Longitude data? - Erich

Re: odd SPARQL MINUS behavior Jena 2.11.0

2013-12-13 Thread Erich Bremer
= Erich Bremer http://www.ebremer.com http://haylyn.io On 12/13/13 2:45 AM, Rob Vesse wrote: Yes that should be the answer Rob -Original Message- From: Erich Bremer er...@ebremer.com Sent: ‎13/‎12/‎2013 06:42 To: users@jena.apache.org users@jena.apache.org Subject: Re: odd SPARQL

Re: odd SPARQL MINUS behavior Jena 2.11.0

2013-12-12 Thread Erich Bremer
. Would this be correct? - Erich On 12/11/13 4:25 AM, Andy Seaborne wrote: On 11/12/13 02:56, Erich Bremer wrote: In the following segment of code: String queryString = construct {?s a ?o} whereccc minus {?s a http://xmlns.com/foaf/0.1/Person}}; Query query = QueryFactory.create

Question on RDF Turtle imports into Jena Model

2013-04-07 Thread Erich Bremer
in, but, with imported document's prefix definitions removed, the import fails. Should it fail? Or would it make more sense that if there are matching prefixes, that it would use the pre-defined prefixes of the model? - Erich Erich Bremer http://www.ebremer.com

Re: Question on RDF Turtle imports into Jena Model

2013-04-07 Thread Erich Bremer
. - Erich Erich Bremer http://www.ebremer.com On 4/7/2013 3:21 PM, Andy Seaborne wrote: On 07/04/13 18:45, Erich Bremer wrote: Hi, I have a jena 2.10.0 Model and when I import a fully-formed turtle document everything works great. The triples are added and the prefixes for the Model

Re: SPARQL 1.1 Graph Store HTTP Protocol

2013-01-24 Thread Erich Bremer
Yeah, I messed up and sent it to this group before I realized it, my apologizes. - Erich On 01/22/13 1:30 PM, Andy Seaborne wrote: On 22/01/13 00:28, Erich Bremer wrote: Is the SPARQL 1.1 Graph Store HTTP Protocol supported yet in Virtuoso? http://www.w3.org/TR/sparql11-http-rdf-update

Typed Literals

2012-07-24 Thread Erich Bremer
or am I not understanding something here? - Erich Erich Bremer http://www.ebremer.com