Re: GeoSparql example?

2023-12-29 Thread Claude Warren
; On Fri, Dec 1, 2023 at 8:08 PM Claude Warren wrote: > > > can you give me an example of a query? > > > > On Fri, Dec 1, 2023, 19:14 Marco Neumann > wrote: > > > > > just go ahead you are almost there > > > > > > wkt:asWKT

Re: GeoSparql example?

2023-12-01 Thread Claude Warren
Marco > > On Fri, Dec 1, 2023 at 6:03 PM Claude Warren wrote: > > > I am playing with GeoSparql for the fist time and I am trying to find an > > example of how to format the data. > > > > I have a polygon: > > POLYGON ((-5.5 -5.5, -4.5 -5.5, -4.5 -4.5, -5.5

GeoSparql example?

2023-12-01 Thread Claude Warren
I am playing with GeoSparql for the fist time and I am trying to find an example of how to format the data. I have a polygon: POLYGON ((-5.5 -5.5, -4.5 -5.5, -4.5 -4.5, -5.5 -4.5, -5.5 -5.5)) and a linestring: LINESTRING (-1 -3, -1 -2) Using the jena-geosparql module what is the SPARQL insert

Re: Build Full Text Search query using SelectBuilder

2022-05-30 Thread Claude Warren
On 24/05/2022 11:01, Goławski, Paweł wrote: PREFIX   ex: http://www.example.org/resources# PREFIX rdfs: http://www.w3.org/2000/01/rdf-schema# PREFIX text: http://jena.apache.org/text#

Re: Adding subquery to construct query with the query builder

2021-07-03 Thread Claude Warren
On 2021/04/02 11:02:21, Daniel Jeller wrote: > Hi, > > I’m trying to create a CONSTRUCT query using the Jena query builder and I > couldn’t figure out how to correctly add a subquery. I’ve tried to create > code similar to the following but in the end the expected “Select *” clause > is

ApacheCon Call for Papers

2021-03-09 Thread Claude Warren
Greetings, We have an RDF / Linked Data track at ApacheCon this year. If you are working on a project that uses Jena we would like to hear from you. Please submit paper proposals at https://acah2021.jamhosted.net/ Thank you, Claude

ApacheCon@home 2020 - Semantic Graph BoF

2020-09-02 Thread Claude Warren
Greetings, ApacheCon is almost upon us. This year it is online and free. So please make plans to attend. This year Apache Jena is hosting a Semantic Graph "Birds of a Feather" session[1] as part of the Jena track. Please come join us and discuss all things Semantic Graph. [1]

Jena ApacheCon Talks

2020-08-31 Thread Claude Warren
Jena has several talks at ApachCon this year. It is is being held online and it is free. Please take a look at the track schedule: https://www.apachecon.com/acah2020/tracks/jena.html Claude

Re: Java heap space

2020-02-16 Thread Claude Warren
Luis, Did you solve this problem? Did you try setting the -Xmx property on the Java command line? I don't recall what the default is but you could set it to something like -Xmx:1g to allocate 1 gig of memory. Claude On Wed, Feb 5, 2020 at 12:24 PM Luis Enrique Ramos García wrote: > > > >

Re: Fuseki - SELECT during INSERT

2020-01-21 Thread Claude Warren
a JVM > threaddump. Should be one thread that is stuck (I'm assuming the SELECT > runs on the same thread as the INSERT and also this deadlocks everytime, > not, for example, when another request is happening at the same time). > > Related to Claude's point. TDB has multiple-reader-an

Re: Fuseki - SELECT during INSERT

2020-01-20 Thread Claude Warren
de On Mon, Jan 20, 2020 at 3:10 PM Claude Warren wrote: > Barry, > > Can you provide the configuration for the Fuseki server? I need to know > how the dataset(s) are constructed. > > Claude > > On Mon, Jan 20, 2020 at 11:10 AM Claude Warren wrote: > >> I am n

Re: Fuseki - SELECT during INSERT

2020-01-20 Thread Claude Warren
Barry, Can you provide the configuration for the Fuseki server? I need to know how the dataset(s) are constructed. Claude On Mon, Jan 20, 2020 at 11:10 AM Claude Warren wrote: > I am not certain if the lock is the reason but am providing more > background on the permissions process

Re: Fuseki - SELECT during INSERT

2020-01-20 Thread Claude Warren
I am not certain if the lock is the reason but am providing more background on the permissions processing so someone with more dataset experience can answer. To use the permissions on a dataset requires that the dataset be constructed from individual models. As each of the models would have to

Re: programmatically construct UpdateDeleteInsert

2019-12-07 Thread Claude Warren
FYI QueryBuilder framework has methods to programmatically build Update requests as well as queries? On Thu, Dec 5, 2019 at 4:25 PM Paul Tyson wrote: > Never mind. I missed: > > QuadAcc deletes = upd.getDeleteAcc(); > deletes.addTriple(/* triple pattern to delete */); > > Regards, > --Paul >

Re: jena-maven-tools still has at least ONE stalwart fan!

2019-11-28 Thread Claude Warren
I have written Maven plugins in the past and I had one project that used the schemagen plugin. I have not had the drive to maintain schemagen and so have never stepped forward on this topic, but if someone steps up to drive the maintenance I would be happy to contribute my knowledge and a bit of

Re: Access control on Jena/fuseki datasets

2019-11-24 Thread Claude Warren
If you want to restrict access to datasets alone you can probably do that in Fuseki. If you want to grant access to specific models within a dataset you will probably need to use the Permissions layer. The permissions layer will allow you to restrict access to graphs or even down to the triple

Re: Analyzing SPARQL Queries

2019-10-07 Thread Claude Warren
Leeuwen > > > twitter: @semanticfire > tel. +31(0)6-53182997 > Netage B.V. > http://netage.nl > Esdoornstraat 3 > 3461ER Linschoten > The Netherlands > > > > > From:Claude Warren > To:users@jena.apache.org > Date:

Re: Analyzing SPARQL Queries

2019-10-07 Thread Claude Warren
Bart, Not sure exactly what you are trying to do or actually looking for but, assuming you have a parsed query and you want to detect the pattern so you can state that ?t is a class you could use the ElementVisitor pattern. See the query builder WhereHandler.build() method as well as the

Re: [UnionModel] question about unexpected behaviour

2019-09-30 Thread Claude Warren
struct such > a dataset via an Assembler .ttl file? > > Regards, Barry > > -Original Message- > From: Claude Warren > Sent: maandag 30 september 2019 16:33 > To: users@jena.apache.org > Subject: Re: [UnionModel] question about unexpected behaviour > > Barry,

Re: [UnionModel] question about unexpected behaviour

2019-09-30 Thread Claude Warren
graph :ontoGraph ] > . > > :unionModel rdf:type ja:UnionModel ; > ja:rootModel :itemGraph ; > ja:subModel :ontoGraph . > > :itemGraph rdf:type ja:MemoryModel ; > ja:content [ ja:externalContent > ] . > > :ontoGraph rdf:type ja:

Re: [UnionModel] question about unexpected behaviour

2019-09-26 Thread Claude Warren
Empty graphs in Fuseki simply don't exist. They no more exist than a predicate that has not been used. Named graphs only come into existence when there is at least one triple added to it. If you think about datasets as collections of quads ( ) then you can see that the dataset can only locate

Re: Ontology mapping

2019-09-26 Thread Claude Warren
pping rules on each > one of them. > by doing so, I keep them independent but at the same time I can query them > both. > > Best regards, > Elio HBEICH > > On Wed, Sep 25, 2019 at 5:27 PM Claude Warren wrote: > > > I am not certain exactly what you are asking. Are

Re: Fuseki vs Rya

2019-09-25 Thread Claude Warren
Based on a single talk at ApacheConNA by Adina Crainiceanu there is not much difference in functionality, though Rya does not fully implement SPARQL 1.1, it probably does enough to work for most projects. Rya does do some interesting things with data sketches (

Re: Ontology mapping

2019-09-25 Thread Claude Warren
I am not certain exactly what you are asking. Are you asking how to create an ontology that maps different names for the same concept together (eg. molecular weight -vs- compound weight) so that you can query across them? If so the only examples I know of are BioFed:

Re: Parsing RDFNode.toString()-s (back) to RDFNodes -- or parsing GROUP_CONCAT to RDFLists

2019-09-05 Thread Claude Warren
I am not certain, but I think that the QueryBuilder AbstractQueryBuilder class has static methods that take objects and create nodes from them. I think that passing the string representation the '<' and '>' prefix and suffix will work for URLs. If you have names like dc:name and "dc" is

Re: StreamRDF.base()

2019-08-15 Thread Claude Warren
Learn something new every day... On Wed, Aug 14, 2019 at 5:44 PM Andy Seaborne wrote: > > > > (and it is technically wrong to have a # in the base) > > so as a base "http://example.com/myfile.txt#; is incorrect but " http://example.com/myfile.txt/; is correct? or technically does the last

Re: StreamRDF.base()

2019-08-14 Thread Claude Warren
The StreamRDF just passed the base() argument on to the sink so that the sink would have the base in order to set create the FQ URI from local URIs. StreamRDFLib simply ignores the base() call. I assume this is because it is intended to process fully qualified RDF. I think the assumption is

Re: InfModels in Dataset on Fuseki.

2019-07-15 Thread Claude Warren
is at a premium) the graph can be discarded as the reasoner can be recreated from the underlying TDB. Thoughts? Claude On Mon, Jul 15, 2019 at 11:57 AM Andy Seaborne wrote: > Hi Claude, > > On 13/07/2019 22:26, Claude Warren wrote: > > Greetings, > > > > I know that Fuseki serv

InfModels in Dataset on Fuseki.

2019-07-13 Thread Claude Warren
Greetings, I know that Fuseki serves datasets. I know that the RDFConnecton will use Fuseki as its storage. I know that the RDFConnection will create named graphs if they are in the dataset in the connection.loadDataset( dataset ) call. I know that if RDFConnection is talking to Fuseki it will

Re: XML vs RDF namespaces

2019-07-05 Thread Claude Warren
mespaces, it is to do with URIs. > > > If you can’t change the existing XSLT stylesheet, you could pipeline the > > RDF/XML through a second one which removes the slashes. > > > > This has little to do with Jena really. > > I agree. Looks liek it is is th

XML vs RDF namespaces

2019-07-05 Thread Claude Warren
Greetings, Background: I have an externally curated XML file that I run through an XSLT transform to create an RDF XML file to load into Jena. The namespace URIs in the XML end with a valid XML nameChar (i,e, not a slash '/' or hash '#'). When XML parser parses the document it internally adds

Re: UUID vs compact id

2019-07-02 Thread Claude Warren
I agree with Andy, but note that there is a URN specification for UUID ( https://tools.ietf.org/html/rfc4122) So the URI would be urn:uuid: I used this in a recent project. Claude On Tue, Jul 2, 2019 at 8:53 AM Andy Seaborne wrote: > I doubt one URI design vs another where it will make any

Re: Getting EnhGraph / ModelCom from Resource / Model ?

2019-04-20 Thread Claude Warren
; latest non-snapshot release is still on Jena 2, but that > > > > https://oss.sonatype.org/content/repositories/snapshots/org/xenei/PA4RDF/2.0-SNAPSHOT/ > > is up to date enough. > > > > On Mon, Apr 8, 2019 at 8:51 AM Claude Warren wrote: > > > >> PA4RDF i

Re: Getting EnhGraph / ModelCom from Resource / Model ?

2019-04-08 Thread Claude Warren
and give an optional prefix. > > Additional annotations to label setters or properties by predicate - this > would not be too bad coupled with org.apache.jena.vocabulary. > > Might need different annotations for object properties and data properties. > > > On Sun, Apr 7,

Re: Delete all nested triples

2019-02-21 Thread Claude Warren
Closest thing to iterative might be to us an "IN" clause. On Thu, Feb 21, 2019 at 9:21 AM Martynas Jusevičius wrote: > You cannot. SPARQL is based on pattern matching. > > But why would you need to? Maybe back up and explain that. > > On Thu, Feb 21, 2019 at 6:32 AM ganesh chandra > wrote: > >

Re: CSV to rdf

2019-02-15 Thread Claude Warren
Try Any23 (http://any23.apache.org/) its job in life is to covert from other formats to RDF and it has a CSV conversion module. Claude On Thu, Feb 14, 2019 at 1:59 PM elio hbeich wrote: > Dear all > > Do you have any suggestion about tools or XSLT that can transform CSV to > RDF > > Thank you

Re: Reasoner and updating data in Fuseki

2018-12-31 Thread Claude Warren
Andy has done a large amount of work to offer custom endpoints for > Fuseki. It might be possible to offer an endpoint to load a new schema or > do some other coarser manipulation to get what you need done. > > ajs6f > > > On Dec 6, 2018, at 9:55 AM, Claude Warren wrote: > &

Re: Reasoner and updating data in Fuseki

2018-12-06 Thread Claude Warren
implement an inference model that would allow updates of the schema data. I figure if that is available I can plug that into Fuseki with a couple of custom hooks and do the updates. Claude On Fri, Nov 30, 2018 at 1:11 PM Andy Seaborne wrote: > > > On 27/11/2018 16:57, Claude Warre

Reasoner and updating data in Fuseki

2018-11-27 Thread Claude Warren
I have a case using Fuseki. I have 2 named graphs call them "data" and "schema". Data contains all the data, schema contains all the RDFS based triples. I can configure Fuseki so that an inference model uses an RDF Reasoner to apply the "schmea" rules to the "data", call this graph "inf". In

Re: Push notification?

2018-08-10 Thread Claude Warren
the underlying DatasetGraph >> and use DatasetGraphWrapper to intercept and fire your notifications. I'm >> guessing there's a much cleaner better way to do that at ARQ, which will >> actually know about ASK queries, and I'm looking forward to someone who >> knows mor

Re: Fuseki on Docker

2018-08-10 Thread Claude Warren
`` > > So apparently mmap should work OK. I have no idea how well it works in > relation to having multiple containers using it, isolation, performance, > etc. But hope it helps a bit at least. If you learn more about it, please > share here (: > > Cheers > Bruno > > >

Re: exception in 3.7.0 not in 3.6.0

2018-08-09 Thread Claude Warren
I managed to get time to run the build with 3.8.0 and the problem is fixed. with that version. On Thu, Aug 9, 2018 at 3:34 PM, Claude Warren wrote: > I create an RDFConnection to a local Model (from > ModelFactory.createDefaultModel() > ) (yeah I know that is a strange way to go about

Fuseki on Docker

2018-08-09 Thread Claude Warren
I am running the stain/fuseki based version of fuseki on docker. I am wondering how well the memory mapped files in TDB work inside the docker container. Or even if they do at all? Does anyone know? -- I like: Like Like - The likeliest place on the web LinkedIn:

Push notification?

2018-08-09 Thread Claude Warren
Does anyone have a way to have Jena/Fuseki perform push notifications? I am looking for a mechanism whereby I can create an ASK query and be notified when it succeeds. Any ideas would be appreciated. -- I like: Like Like - The likeliest place on the web LinkedIn:

exception in 3.7.0 not in 3.6.0

2018-08-09 Thread Claude Warren
I get the following exception in some code in 3.7.0 but not in 3.6.0 Exception in thread "SemaphoreListener" org.apache.jena.sparql.JenaTransactionException: Already in a transaction of a different type: outer=WRITE : inner=READ The statement is correct. But I thought that a READ was possible

Re: public SPARQL GET requests, while restricting PUT, POST, DELETE requests to localhost

2018-07-21 Thread Claude Warren
You can also use the permissions system to enforce full CRUD restrictions if needed. Though it does take a bit more work. On Thu, Jul 19, 2018 at 2:57 PM, ajs6f wrote: > Keep in mind that you can wire up your endpoints just as you like: > >

Re: Suppressing SPARQL queries from log

2018-06-29 Thread Claude Warren
You don't specify exactly which log entries you want to avoid but you can do something like: log4.logger.org.apache.jena.sparql=WARN would set all the sparql logs to WARN level. Assuming you are using log4j. On Fri, Jun 29, 2018 at 12:40 PM, Mikael Pesonen wrote: > > Thanks for the reply.

Re: BGP, path, and optimization. Was: Jena Usage Report: Performance, bugs and feature requests

2018-06-09 Thread Claude Warren
int=opt" > and online at sparql.org. > > Andy > > > On 05/06/18 00:24, Claude Warren wrote: > >> Would it not make sense for the optimizer to convert to a form with the >> intermediate variable? >> >> Claude >> >> On Mon, Jun 4, 2

Re: Combined query results

2018-06-09 Thread Claude Warren
sults would be sent to another system as a parametrized query. > > > > Regards, > > Samita Bai > > > From: Claude Warren > Sent: 08 June 2018 22:26:55 > To: users@jena.apache.org > Subject: Re: Combined query results > >

Re: Combined query results

2018-06-08 Thread Claude Warren
How about: prefix : Select ?alice ?address where { ?alice :hasAddress ?address; :hasName "Alice" } On Thu, Jun 7, 2018, 12:36 AM Samita Bai / PhD CS Scholar @ City Campus < s...@iba.edu.pk> wrote: > I need some help with the following code. I

BGP, path, and optimization. Was: Jena Usage Report: Performance, bugs and feature requests

2018-06-04 Thread Claude Warren
ath > blocks the optimizer (it does not get moved): > > As reported: > > where { > ?type rdfs:subClassOf owl:Thing . # No vars in common > ?obj a ?X . # No vars in common > ?X rdfs:subClassOf? ?type >

Re: Jena Usage Report: Performance, bugs and feature requests

2018-06-04 Thread Claude Warren
Andy, Why does the non path where clause work better? Claude

Re: Jena Usage Report: Performance, bugs and feature requests

2018-05-30 Thread Claude Warren
Just a quick note. There is a cassandra implementation but no work has been done on performance tuning. On a second note. I did some work using bloom filters to do partitioning that allows adding partitions on demand. Should work for triple store partitioning as well. Claude On Wed, May 30,

Re: linked data and URLs

2018-05-22 Thread Claude Warren
I am thinking that perhaps the easiest solution will be to create a Node rewriter and filter all the Fuseki results through it to rewrite the nodes. I will also have to rewrite all the queries going in but it might be doable. On Tue, May 22, 2018 at 3:15 PM, Claude Warren <cla...@xenei.

Re: linked data and URLs

2018-05-22 Thread Claude Warren
URIs > would probably be best for persons. > > If you choose to ignore the above, this method might help you: > https://jena.apache.org/documentation/javadoc/jena/org/apache/jena/util/ > ResourceUtils.html#renameResource-org.apache.jena.rdf.model.Resource-java. > lang.String- > &g

linked data and URLs

2018-05-22 Thread Claude Warren
I have what I think may be a common problem and am looking for suggested patterns and anti-patterns for a solution. For the sake of this example let's assume that the system described creates FOAF records. == PROBLEM Backend: The backend system generates FOAF records but does not have any

Re: Problem with understanding Jena Permissions

2018-05-16 Thread Claude Warren
idance, I will do it this way then. > And the future plan is to create a type of secured dataset in Fuseki so > that all incoming and outgoing models are secured and checked automatically? > > > > От: Claude Warren <cla...@xenei.com> Дата: 14.05.18 21:43 (GMT+02:00) >

Re: Problem with understanding Jena Permissions

2018-05-14 Thread Claude Warren
el ; > ja:modelName "https://example.org/securedModel; ; > perm:evaluatorImpl my:secEvaluator . > > > > > > > > 2018-05-11 17:06 GMT+03:00 Claude Warren <cla...@xenei.com>: > > > The permissions in your example are attached to the model called > > my:secMod

Re: Problem with understanding Jena Permissions

2018-05-11 Thread Claude Warren
lt;#service_tdb2> > //the list of services omitted > > And the models are uploaded from the application with : > > DatasetAccessor accessor = DatasetAccessorFactory.createHTTP(); > accessor.putModel(name, model); > > So, with these configurations Fuseki doesn't do

Re: Problem with understanding Jena Permissions

2018-05-11 Thread Claude Warren
You don't say if you have modified the default Fuseki configuration but what you will need to do is to modify the configuration file so that the models that are created using the SecuredAssembler. (

Re: Parameterized queries

2018-03-26 Thread Claude Warren
I don't know about escaping the values but there are 2 constructs that might help you. One is VALUES https://www.w3.org/TR/sparql11-query/#inline-data query="select * where { VALUES ?sbj { > } $sbj a [] }" and the

Re: Example code

2018-03-19 Thread Claude Warren
This may not be a Fuseki/Jena problem directly but it is one I have had to deal with before. Being a backend architect/developer I try to stay away from the UI as much as possible. However, there comes a time when someone some where says "So how do I get the data out". Right now on my €job I

Re: client/server communication protocol

2018-03-13 Thread Claude Warren
If we take this to the Java environment for a moment, you can read/write directly to the jena database using the java classes. I suppose you could set this up to call it from PHP/Python. HOWEVER, and it is a big however, there are synchronization (read/write) issues with doing this. Fuseki has

Re: Jena Property Table

2018-02-28 Thread Claude Warren
This sounds like a data serialization question. Would it not be easier to write out the triples in turtle and read them in by normal means? On Feb 28, 2018 6:36 AM, "Samita Bai / PhD CS Scholar @ City Campus" < s...@iba.edu.pk> wrote: > Yes Andy, I am also thinking to switch to TDB, cheers. >

Re: Use PREFIXes by default

2018-02-25 Thread Claude Warren
Awhile back I was looking for a way to change/add to the list of prefixes at runtime. This request dovetails nicely with what I was looking for. I got sidetracked with other issues at work before I could really get to it. As I recall most storage layers don't keep a list of namespaces separate

Re: Vocabulary for provenance

2018-02-25 Thread Claude Warren
I would avoid anonymous nodes as they are just to hard to work with when trying to manage the data using SPARQL endpoints. On the other hand if you never produce a SPARQL endpoint this is not an issue. On the third hand, I always find project grow beyond what I first envisioned and SPARQL makes

Re: Recursive SPARQL ( aka arbitrary length path ) : performance

2018-02-08 Thread Claude Warren
Wouldn't the union graph provide different answers in some cases? for example g2 contains ?sub rdfs:subClassOf ex:foo and g3 contains ex:foo rdfs:subClassOf . the original query would not resolve ?sub *rdfs:subClassOf**

Re: Txn code not handling type of transaction

2017-12-27 Thread Claude Warren
I recently wrote some code to try to handle a similar situation. In my case I knew I needed a transaction to be active at various points so I created a TransactionHolder. I create the holder and passing the object that has implements Transactional as well as the type of ReadWrite I want. If

docker fuseki

2017-12-19 Thread Claude Warren
Is there a simple way to have the docker (or naked fuseki) create an empty dataset on startup? We would like to create the dataset (preferably if it doesn't exist) when we start fuseki in the docker container. Claude -- I like: Like Like - The likeliest place on the web

Re: Does Jena support query over Cassandra?

2017-12-19 Thread Claude Warren
Claire, Depends on what you mean by querying over Cassandra. Jena supports a pluggable storage layer. To that end I have written a storage layer for Jena on Cassandra (https://github.com/Claudenw/jena-on-cassandra) that is functional but has not been tested at scale/load. If you mean can it

Re: Finding differences between graphs (Was: Jena/Fuseki graph sync)

2017-12-08 Thread Claude Warren
hs, e.g. > DESCRIBE <>, the algorithms for graph isomorphism that support blank > nodes should be good. rdflib includes an implementation, and I wish I > knew whether there is an implementation of that digest algorithm for Jena. > > On Fri, Dec 8, 2017 at 2:27 AM, Claude Warren <

Re: Finding differences between graphs (Was: Jena/Fuseki graph sync)

2017-12-07 Thread Claude Warren
https://github.com/Claudenw/BloomFilter https://github.com/Claudenw/BloomGraph Both are just playground code. I would be happy to discuss any issues with you. Claude On 8 Dec 2017 08:43, "Laura Morales" wrote: > > If anyone is interested in trying this I have some

Finding differences between graphs (Was: Jena/Fuseki graph sync)

2017-12-07 Thread Claude Warren
On Fri, Nov 24, 2017 at 12:19 PM, Laura Morales wrote: > > What about simply deleting the old graph and loading the triples of the > > .nt file into the graph afterwards? I don't see any benefit of such a > > "tool" - you could just write your own bash script for this if you

Re: Jena Initializer Error

2017-11-22 Thread Claude Warren
Neda, What is the call stack from the exception? it would be nice to know what it says as that would point to the location of the error. I suspect that you are not including all the necessary Jena libraries, but can not be certain. Claude On Thu, Nov 23, 2017 at 1:25 AM, Neda Alipanah

Re: problem with VALUES querybuilder

2017-11-21 Thread Claude Warren
t and after any GROUP BY. > > See the algebra at http://www.sparql.org/query-validator.html > > Andy > > > On 21/11/17 14:46, Claude Warren wrote: > >> based on https://www.w3.org/TR/sparql11-query/#inline-data-examples >> >> there is no difference be

Re: problem with VALUES querybuilder

2017-11-21 Thread Claude Warren
based on https://www.w3.org/TR/sparql11-query/#inline-data-examples there is no difference between values blocks inside or outside a graph pattern. On Tue, Nov 21, 2017 at 2:35 PM, Claude Warren <cla...@xenei.com> wrote: > Currently the values are always placed in the top level of

Re: problem with VALUES querybuilder

2017-11-21 Thread Claude Warren
Currently the values are always placed in the top level of the query. Q: does it make a difference to exeuction? (I suspect it does but I want to make sure before I proceed to add a method to place it inside the graph pattern. Claude On Tue, Nov 21, 2017 at 1:20 PM, Rob Vesse

Re: sixteenth anniversary

2017-11-20 Thread Claude Warren
Or perhaps a song https://www.youtube.com/watch?v=yoOuTSBAWWA On Mon, Nov 20, 2017 at 4:22 PM, Claude Warren <cla...@xenei.com> wrote: > We need a cake :) > > On Mon, Nov 20, 2017 at 4:09 PM, Andy Seaborne <a...@apache.org> wrote: > >> Today, November 20th, 2017

Re: sixteenth anniversary

2017-11-20 Thread Claude Warren
We need a cake :) On Mon, Nov 20, 2017 at 4:09 PM, Andy Seaborne wrote: > Today, November 20th, 2017, is the sixteenth anniversary of the > registration of Jena as a SourceForge project. > > https://sourceforge.net/projects/jena/ > 2001-11-20 > > The entire code history up

Re: problem with query builder

2017-11-18 Thread Claude Warren
Fix coming shortly but the work around is... change: Expr x = new NodeValueInteger(1) to: NodeValue nv = new NodeValueInteger(1) nv.asNode() Expr x = nv; Claude On Sat, Nov 18, 2017 at 3:48 PM, Claude Warren <cla...@xenei.com> wrote: > Well done Andy. Right on the money, exact

Re: problem with query builder

2017-11-18 Thread Claude Warren
Well done Andy. Right on the money, exactly what I discovered. On Sat, Nov 18, 2017 at 3:39 PM, Andy Seaborne <a...@apache.org> wrote: > c.f. NodeValue.getNode and NodeValue.asNode > > Presumably something calls getNode when it wanted asNode. > > > On 18/11/17 15

Re: problem with query builder

2017-11-18 Thread Claude Warren
This is a bug. The problem is that new NodeValueInteger(1); does not set the Node value that the rewriter is trying to rewrite and thus the null pointer exception. I will get a fix out shortly. Claude On Fri, Nov 17, 2017 at 4:14 PM, Chris Dollin wrote: > Hi, >

Re: How to derive Change Statements

2017-10-30 Thread Claude Warren
s well as > rdf-patch. I think using these tools I will e able to handle my use cases. > Let me give them a try and see if I stumble upon some rabbit hole. > > Thanks, > Anuj Kumar > > On Fri, Oct 27, 2017 at 2:39 PM, Claude Warren <cla...@xenei.com> wrote: > > > Sinc

Re: How to derive Change Statements

2017-10-27 Thread Claude Warren
Since you need to detect who changed what the only way I can see to do this is turn on authentication on Fuseki and track changes made through it. You could bastardise the permissions layer[1] to do what you want. The permissions layer will let you filter down to the actions on the triples,

Re: Binding graph names for WITH and USING

2017-10-26 Thread Claude Warren
Another template solution is the query builder where you can bind the ?g just before query. Though I am not certain that you can specify a var for the graph name when building the query. If you can then using the setVar() method to replace it just before execution. Claude On Wed, Oct 25, 2017

Re: Jena Bean

2017-08-11 Thread Claude Warren
I have not used JavaBean as I am the author of PA4RDF but I believe that both do similar things that is map POJOs to RDF data stores, so yes bridge between java code and RDF. Claude On Fri, Aug 11, 2017 at 8:44 PM, javed khan wrote: > What is JenaBean advantages? Is it

Re: SPARQL update question

2017-06-03 Thread Claude Warren
ahhh, I missed the with where difference. DOH! On Sat, Jun 3, 2017 at 3:59 PM, Andy Seaborne <a...@apache.org> wrote: > (You could try in at the command line and see!) > > Yes, they are different. > > On 03/06/17 15:51, Claude Warren wrote: > >> Is there a d

SPARQL update question

2017-06-03 Thread Claude Warren
Is there a difference between DELETE { GRAPH { ?person foaf:givenname "Bill" . } } INSERT { GRAPH { ?person foaf:givenname "William" . } } WHERE { ?person foaf:givenname "Bill" } and WITH

Re: Javadoc download for Jena

2017-05-13 Thread Claude Warren
The javadoc are released as part of the distribution. Most IDEs that support Maven usage have a mechanism to download the javadoc as well. In this case the javadoc will appear as if by magic. Otherwise the javadocs for the specific jars can be downloaded from

Re: How to make complex SPARQL queries reusable?

2017-04-24 Thread Claude Warren
You could use federated queries to return the sub query -- this is probably not efficient but might provide a starting point for futher investigation. If you are doing this in code you could use the QueryBuilder ( https://jena.apache.org/documentation/extras/querybuilder/) and pass the sub query

Re: construct with jena jdbc driver

2017-04-19 Thread Claude Warren
o detect the equivalent JDBC type: > > http://jena.apache.org/documentation/javadoc/jdbc/org/apache/jena/jdbc/ > JdbcCompatibility.html#detectColumnType-java.lang. > String-org.apache.jena.graph.Node-boolean- > > Hope this helps, > > Rob > > On 18/04/2017 16:53, "Claude

construct with jena jdbc driver

2017-04-18 Thread Claude Warren
Quick question: I have a construct query that returns various types for the object. example: CONSTRUCT { ?p ?o . } WHERE { ?p ?o } Is there a method in the JDBC driver that will allow me to determine what that type is? Parsing string -vs- URI is rather difficult. :( Thx,

Re: Fuseki prefixes

2017-04-02 Thread Claude Warren
on startup? Claude On Sun, Apr 2, 2017 at 11:20 AM, Andy Seaborne <a...@apache.org> wrote: > Claude, > > Do you mean prefixes in the UI? > > At one point you seem to be talking about sending the query by API. > > On 01/04/17 12:20, Claude Warren wrote: > >> I

Fuseki prefixes

2017-04-01 Thread Claude Warren
I see that the qonsole-config.js where the prefixes for the queries is defined. However, I want to know if there is a configuration option that would allow me to change the list without modification of the source code. Specifically we have a data-driven problem whereby the prefixes are not known

Re: SPARQL query

2017-03-01 Thread Claude Warren
gt; > Or did you mean that this has to be generic, so that any resource ?a can > be used as input and the query has to figure out the restrictions based on > properties that ?a has or doesn't have? That's going to be trickier... > > -Osma > > > 01.03.2017, 22:12, Claude Warr

SPARQL query

2017-03-01 Thread Claude Warren
I have a graph where resources have a number of controlled properties. Call them A thorough F. Some resources may have one property other may have all 6. I have a resource with a with properties A, B, and C. I want to find all resources in the graph where the resource has matching values but

FOSDEM 2017

2017-01-25 Thread Claude Warren
Is anyone going to FOSDEM 2017? If so perhaps we can get together for coffee or a beer. Claude -- I like: Like Like - The likeliest place on the web LinkedIn: http://www.linkedin.com/in/claudewarren

Re: Literal string to appropriate object

2017-01-12 Thread Claude Warren
You might look at how PA4RDF handled the problem. https://github.com/Claudenw/PA4RDF in https://github.com/Claudenw/PA4RDF/blob/master/src/main/java/org/xenei/jena/entities/impl/PredicateInfoImpl.java the method getHandler() has code that determines what the return type is for a literal. The

Re: Jena on Cassandra

2017-01-07 Thread Claude Warren
would be more efficient. But I have not tested. Claude On Sat, Jan 7, 2017 at 3:14 PM, Nicolas Paris <nipari...@gmail.com> wrote: > Le 05/58/2017 ą 21:58, Claude Warren écrivait : > > I posted this on the Dev list but ment to post it here. Sorry for the > > x-post. >

Jena on Cassandra

2017-01-05 Thread Claude Warren
I posted this on the Dev list but ment to post it here. Sorry for the x-post. Jena on Cassandra (https://github.com/Claudenw/jena-on-cassandra) now has a complete Graph implementation and passes all the contract tests. It is now possible to use a Cassandra cluster as the storage layer for Jena.

  1   2   3   >