Re: Attaching JSON-LD to web page for Google SEO

2018-08-16 Thread Damian Steer
re not always fully compliant json-ld processors. In principle framing [1] ought to do the trick, but last time I tried it wasn’t fully working (although it may well be time to revisit that). Damian [1] <https://json-ld.org/spec/latest/json-ld-framing/> -- Damian Steer Data Research Softwar

Re: RDFa ...

2018-01-16 Thread Damian Steer
especially 1.1, and the test suite became awkward to use. Good luck with it! Damian -- Damian Steer Senior Technical Researcher University of Bristol https://www.bris.ac.uk/contact/person/getDetails?personKey=W1K8jX7rokwl8OKZUeQMmPO1FXAvt0

Re: JenaJung new version requried

2016-01-17 Thread Damian Steer
ing. Just updated it. Yes, code changes are simply renaming imports. Hope it works ok, Damian -- Damian Steer Senior Technical Researcher Research IT +44 (0) 117 39 41724

Re: Convert .ttl turtle format file into .rdf file

2015-08-06 Thread Damian Steer
with the result. If you want rdf/xml then you can’t stream (currently). If you want another format, well, you already have turtle of course. ntriples is a solid format generally. Damian -- Damian Steer Senior Technical Researcher Research IT +44 (0) 117 928 7057

Re: TDB size

2015-02-12 Thread Damian Steer
the space used? TDB files tend to be sparse, so the disk use reported can be unreliable. Example from my system: 6.2M [...] 264M [...] GOSP.dat The first number (6.2M) is essentially the disk space taken, the second (264M!) is the 'length' of the file. Damian -- Damian Steer Senior Technical

Re: Jena / Stanbol success stories?

2014-11-26 Thread Damian Steer
of uses, without (as you say) any implied endorsement or promotion. Damian -- Damian Steer Senior Technical Researcher Research IT +44 (0) 117 928 7057

Re: Bug SPARQL parser ?

2014-10-08 Thread Damian Steer
On 08/10/14 15:06, Julien Plu wrote: Hi, I think I found a little bug in the SPARQL parser for Jena 2.12.0. When I run the query : SELECT count(distinct ?s) as ?count WHERE {?s ?p ?o} You need parentheses around the ... as ...: SELECT (count(distinct ?s) as ?count) WHERE {?s ?p ?o}

Re: SPARQL1.1 query over Virtuoso repository through Jena

2014-04-10 Thread Damian Steer
On 10/04/14 06:15, Anila Sahar Butt wrote: PREFIX csiro:http://au.csiro.browser# PREFIX rdfs:http://www.w3.org/2000/01/rdf-schema# PREFIX owl:http://www.w3.org/2002/07/owl# PREFIX rdf:http://www.w3.org/1999/02/22-rdf-syntax-ns# SELECT ?property ?propLabel ?range ?rangeLabel WHERE

Re: Incorrect output: Request guidance

2013-12-26 Thread Damian Steer
On 26 Dec 2013, at 20:51, Rose Beck rosebeck...@gmail.com wrote: I created my data file containing the following data(try.nq): http://dbpedia.org/data/Plasmodium_hegneri.xml http://code.google.com/p/ldspider/ns#headerInfo _:header16125770191335188966549 a . Ah, here is the issue.

Re: SDBException

2013-11-07 Thread Damian Steer
On 7 Nov 2013, at 09:45, james.c...@tessella.com wrote: Hi I'm pretty new to Jena/SDB but have been having a problem running on Oracle with the LayoutTripleNodesIndex database layout. I've been seeing the following error when saving triples. My question are: what is the

Re: Date Query Performance

2013-09-11 Thread Damian Steer
On 11 Sep 2013, at 15:04, Iain Ritchie iainritc...@gmail.com wrote: Hello, I am executing the following count(*) query multiple times for a sliding date range i.e. count for 1st September, 2nd September etc. Can anyone suggest a more efficient way of doing this since I have to execute the

Re: RDFDataTyping in a statement

2013-07-23 Thread Damian Steer
On 23 Jul 2013, at 12:16, Phil Ashworth pashwor...@gmail.com wrote: Sorry if these are trivial questions. Not a problem. The triple written to the file is http://me.org#myresource http://me.org#myproperty false ; For boolean I don’t see the data type written out i.e. I was expecting

Re: SPARQL interaction of OPTIONAL, FILTER, and BIND

2013-07-10 Thread Damian Steer
On 9 Jul 2013, at 21:01, Joshua TAYLOR joshuaaa...@gmail.com wrote: prefix : http://example.org/ select ?element ?index ?element2 ?index2 where { ?element :atIndex ?index . OPTIONAL { BIND( ?index - 1 as ?index2 ) ?element2 :atIndex ?index2 . } } order by ?index produces

Re: SPARQL interaction of OPTIONAL, FILTER, and BIND

2013-07-10 Thread Damian Steer
On 10 Jul 2013, at 10:07, Damian Steer d.st...@bris.ac.uk wrote: On 9 Jul 2013, at 21:01, Joshua TAYLOR joshuaaa...@gmail.com wrote: prefix : http://example.org/ select ?element ?index ?element2 ?index2 where { ?element :atIndex ?index . OPTIONAL { FILTER( ?index - 1 = ?index2

Re: SPARQL interaction of OPTIONAL, FILTER, and BIND

2013-07-10 Thread Damian Steer
On 10 Jul 2013, at 12:36, Joshua TAYLOR joshuaaa...@gmail.com wrote: I know that when there are *sub*-queries in a query, they're evaluted from the inside out (i.e., innermost subqueries are evaluated first), but this doesn't make sense for OPTIONAL patterns, does it? The whole point of an

Re: Unexpectedly slow query

2013-05-15 Thread Damian Steer
On 15 May 2013, at 14:10, huey...@aol.com wrote: Hello, I am using the following Sparql query against a TDB store: SELECT * WHERE { ?pat a nci:Patient . ?pat ec:Has_Id ?patId . ?findingProp rdfs:subPropertyOf ec:Has_Finding . ?pat ?findingProp ?finding . ?finding a

Re: Sparql Update Delete with no explicit graph

2013-05-10 Thread Damian Steer
On 10/05/13 13:13, Cekov, Luchesar wrote: Hi there, Hi, I started using Jena TDB and Fuseki just recently and I am trying to post some Sparql Update Delete statements. I am experiencing a problem when deleting with no explicit graph specified. DELETE { http://s/1 ?p ?o } WHERE {

Re: Concurrency in Jena/SDB

2013-04-15 Thread Damian Steer
On 15 Apr 2013, at 14:38, David Jordan david.jor...@sas.com wrote: So every call to a method of Model or OntModel is done in a separate transaction? This could easily explain the poor performance I am getting, and those of others who have complained about SDB performance in this group.

Re: custom algebra optimizer

2013-03-22 Thread Damian Steer
On 22 Mar 2013, at 17:01, Diogo FC Patrao djogopat...@gmail.com wrote: I'm rendering back the query, implementing the OpAsQuery missing methods. However I got another doubt, check the query below: select ?p count( ?b ) { ?p a http://marafo.com#Paciente. ?a http://marafo.com#tem ?b. LET (

Re: Fuseki on virtual triples

2012-11-26 Thread Damian Steer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 23/11/12 17:12, Dimitris Spanos wrote: Hello all, Hi Dimitris, Not sure you got a reply to this. I have built a custom QueryEngine that enables SPARQL access to a relational database ... This is read only, I take it? If I want to use

Re: Feeding triples from java-rdfa-0.4.2 + Jena into fuseki-0.2.5-20120916.055428-41

2012-10-24 Thread Damian Steer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 24/10/12 13:52, Andy Seaborne wrote: Not knowing how java-rdfa works, I guess that it is creating langtags directly. It does not hook into RIOT. The validation code only works for RIOT parsing (NT, Turtle, etc) Yep, it creates lang tags

Re: com.hp.hpl.jena.query.QueryExecution.close()

2012-08-27 Thread Damian Steer
On 27 Aug 2012, at 17:17, Rob Vesse rve...@yarcdata.com wrote: On 8/26/12 11:18 AM, Andy Seaborne a...@apache.org wrote: And on a related note, I wonder if execSelect or even deeper in HttpQuery.exec should read the entire response, and not try to do end-to-end streaming. That way, a

Re: com.hp.hpl.jena.query.QueryExecution.close()

2012-08-27 Thread Damian Steer
On 27 Aug 2012, at 18:51, Stephen Allen sal...@apache.org wrote: Would it be possible to use a buffer? For small-ish result sets you would get the behaviour Andy suggests, but avoid the OOM issue. Something like setFetchSize() [1]? Oracle [2] defaults to 10 rows, while PostgreSQL [3]

Re: SPARQL Update on default RDF model

2012-08-08 Thread Damian Steer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/08/12 07:51, Enes Bulut wrote: Hi all, First I create a default model. Model model= new ModelFactory.createDefaultModel(); ... Query string is something like that: String queryStr = PREFIX foaf: http://xmlns.com/foaf/0.1/ + WITH

Re: How to convert assign URL to blank node?

2012-06-26 Thread Damian Steer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 26/06/12 09:20, Andy Seaborne wrote: You can use ResourceUtils.renameResource(oldResource, uri) [1] to achieve the same effect. Behind the scenes this removes old statements using oldResource and makes new ones with uri. Damian [1]

Re: How to convert assign URL to blank node?

2012-06-26 Thread Damian Steer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 26/06/12 09:20, Andy Seaborne wrote: On 26/06/12 01:30, franswors...@googlemail.com wrote: How can I assign an URI to a blank node? The Resource class only provides getURI() or getId() methods, but the URI can't be set. Do I have to create a

Re: Strange behaviour of XMLLiterals in RDF/XML

2012-06-25 Thread Damian Steer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 25/06/12 13:34, Andy Seaborne wrote: The best RDF-WG is going to do is make XMLLiteral less mandatory. 'Less mandatory'? :-) I was writing a similar reply as this came in. It's horrible trying to explain it, and it will be nice not to have to

Re: importing ntriples into tdb without stop at an error

2012-06-13 Thread Damian Steer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 13/06/12 14:03, Stefan Scheffler wrote: Hello, I need to import large n-triple files (dbpedia) into a tdb. The problem is, that many of the triples are not valid (like missing '' or invalid chars) and leading to an exception which quits the