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 st

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 mi

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] https://www.apac

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: > > > > De

Re: Fuseki - SELECT during INSERT

2020-01-21 Thread Claude Warren
would be useful is 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 Cla

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 ha

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 lev

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 BuildEl

Re: [UnionModel] question about unexpected behaviour

2019-09-30 Thread Claude Warren
ble to construct 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 > &

Re: [UnionModel] question about unexpected behaviour

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

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 ( http://incubator.apache.org/projects

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: https://www.researchgate.net

Re: How to update a remote repository from a Java client...?

2019-09-20 Thread Claude Warren
Using the UpdateBuilder and RDFConnection can make this much easier (i.e. no missing '<' ) On Thu, Sep 19, 2019 at 11:23 PM Andy Seaborne wrote: > > > On 19/09/2019 15:23, Mark Hissink Muller wrote: > > String postUrl = > > "http://testserver:8080/rdf4j-server/repositories/POST_REPO"; > > > >

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 prefixma

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 seg

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 that

Re: InfModels in Dataset on Fuseki.

2019-07-15 Thread Claude Warren
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
lization" - it is not to do with namespaces, 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. &g

XML vs RDF namespaces

2019-07-04 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 a

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 ob

Re: Getting EnhGraph / ModelCom from Resource / Model ?

2019-04-20 Thread Claude Warren
te that the > > 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: > > >

Re: Getting EnhGraph / ModelCom from Resource / Model ?

2019-04-08 Thread Claude Warren
URI, 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, A

Re: Getting EnhGraph / ModelCom from Resource / Model ?

2019-04-07 Thread Claude Warren
Thomas, I think that PA4RDF does/did what you want to do (https://github.com/Claudenw/PA4RDF) Basically, you define FoafPerson as an interface and annotate the getX methods to identify the properties that identify the value. Something like: {noformat} @Subject(namespace = "http://xmlns.com/foaf

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 i

Re: Reasoner and updating data in Fuseki

2018-12-31 Thread Claude Warren
it's pretty > new) but 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

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 Warren

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 ad

Re: Push notification?

2018-08-10 Thread Claude Warren
nly that ASK on 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 som

Re: Fuseki on Docker

2018-08-10 Thread Claude Warren
gt; ``` > > 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: h

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: ht

Re: exception in 3.7.0 not in 3.6.0

2018-08-09 Thread Claude Warren
; Sounds familiar. > > Could you try 3.8.0 please. > JENA-1539 > > > On 09/08/18 12:58, Claude Warren wrote: > >> 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.

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 wh

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: > > https://jena.apache.org/documentation/fuseki2/fuseki-c

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. Our

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

2018-06-09 Thread Claude Warren
th "qparse --print=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 >> >&

Re: Combined query results

2018-06-09 Thread Claude Warren
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 am

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, 2

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 wrote: > Can not

Re: linked data and URLs

2018-05-22 Thread Claude Warren
e 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- > > On Tue, May 22, 2018 a

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 info

Re: Problem with understanding Jena Permissions

2018-05-15 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 Дата: 14.05.18 21:43 (GMT+02:00) > Кому: users@jen

Re: Problem with understanding Jena Permissions

2018-05-14 Thread Claude Warren
seModel ; > ja:modelName "https://example.org/securedModel"; ; > perm:evaluatorImpl my:secEvaluator . > > > > > > > > 2018-05-11 17:06 GMT+03:00 Claude Warren : > > > The permissions in your example are attached to the model called > > my:secModel. > &g

Re: Problem with understanding Jena Permissions

2018-05-11 Thread Claude Warren
gt; <#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

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. ( http://jena.apache.org/documentation/javadoc/permissions/org/apache/jena/permissions/SecuredAssemble

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 o

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 hav

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 t

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 f

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 a

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
gt; > Do you have example code? Just to have a guide to migrate the idea. > > > > > Dick Original message From: Claude Warren > > Date: 27/12/2017 11:29 (GMT+00:00) To: > > users@jena.apache.org Subject: Re: Txn code not handling type of > >

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 the

Re: docker fuseki

2017-12-19 Thread Claude Warren
Docker, I would think you should be able to accompany the > Dockerfile with an appropriate config directory. > > For Fuseki alone, a config file with assembler RDF would handle an in-mem > dataset, but I'm not sure about a TDB dataset. > > ajs6f > > > On Dec 19, 2017

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 cre

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

2017-12-08 Thread Claude Warren
t;, 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 wrote: > > > On F

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 triple/bloom filter > code

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 need > > this quite o

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 wrote:

Re: problem with VALUES querybuilder

2017-11-21 Thread Claude Warren
t; > 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 between values blocks inside

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 wrote: > Currently the values are always placed in the top level of the query. > > Q: doe

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 wrote: > The out

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 wrote: > 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 >> r

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 until the migration to

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 wrote: > Well done Andy. Right on the money, exactly what I discovered. >

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 wrote: > c.f. NodeValue.getNode and NodeValue.asNode > > Presumably something calls getNode when it wanted asNode. > > > On 18/11/17 15:36, Claude Warren wrote:

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, > > I was experimenting with the

Re: How to derive Change Statements

2017-10-30 Thread Claude Warren
k 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 wrote: > > > Since you need to detect who changed what the only way I ca

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, rathe

Re: Binding graph names for WITH and USING

2017-10-25 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 a

Re: Multiunion doubt

2017-09-08 Thread Claude Warren
try createing a multiunion graph and hen create model on that. The last time I looked the multiunion graph did not copy the data but rather made calls across the graph implementations. Claude On Fri, Sep 8, 2017 at 11:17 AM, George News wrote: > Ups I have just noticed that MultiUnion is worki

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 simplify our code and bri

Re: RDFConnection create dataset?

2017-07-11 Thread Claude Warren
dding-a-dataset-and-its-services > > Basically you send a POST with some simple parameters. > > ajs6f > > Claude Warren wrote on 7/11/17 11:16 AM: > >> Is there an easy way to >> >> >>1. determine what data sets exist on a connection >>2. crea

RDFConnection create dataset?

2017-07-11 Thread Claude Warren
Is there an easy way to 1. determine what data sets exist on a connection 2. create a new dataset Failing that, is there an example of a REST call to create a new dataset on a Fuseki server? Claude -- I like: Like Like - The likeliest place on the web Linke

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 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 difference between >>

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 DELETE

Re: Question - Urgent !

2017-05-25 Thread Claude Warren
To be fair saying "I want a widget" is not a very clear requirement. However, If you create a javascript backed HTML document with a search bar then when the user hits enter or clicks the search button take the contents of the search bar and pass it to the fuseki query interface you will get resu

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 http://central.maven.org/maven2/org/

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 t

Re: construct with jena jdbc driver

2017-04-19 Thread Claude Warren
ivalent 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 Warren" wrote: &g

  1   2   3   >