evaluation semantics of BIND in a basic graph pattern

2014-08-13 Thread Tim Harsch
Hi all, I'm wondering if someone can help me check my understanding of how ARQ evaluates the following DAWG test query.  Output below using Fuseki 1.1.0 ( How do I check which version of ARQ is in this version of Fuseki?).   I'm wondering if in the first un-optimized algebra form, this amounts

Re: afn:localname strange result

2014-05-16 Thread Tim Harsch
Hi Andy, Yeah, that's pretty close. I originally posted this thread, cause I found myself looking at http://answers.semanticweb.com/questions/10457/calculating-and-extracting-a-substring-in-sparqlagain. All the answers there were close, but just slightly off. I've posted what I now think is the

afn:localname strange result

2014-05-15 Thread Tim Harsch
Why does this query: PREFIX afn:http://jena.hpl.hp.com/ARQ/function# SELECT ?s2 WHERE { BIND(http://example.org/book/book2/sadfju/62eja AS ?uri) BIND( afn:localname(?uri) AS ?s2 ) } give this answer: - | s2| = | eja | - shouldn't it be: 62eja ? The docs only

Re: typed literals to java classes, problem with short and byte.

2014-05-13 Thread Tim Harsch
, May 13, 2014 at 12:51 AM, Dave Reynolds dave.e.reyno...@gmail.comwrote: On 12/05/14 18:26, Tim Harsch wrote: According to the docs: http://jena.apache.org/documentation/notes/typed-literals.html These are all available as static member variables from

Re: afn:localname strange result

2014-05-13 Thread Tim Harsch
valid localname according to the XML definition of a localname. On Sun, May 11, 2014 at 2:22 AM, Andy Seaborne a...@apache.org wrote: On 07/05/14 19:36, Tim Harsch wrote: Why does this query: PREFIX afn:http://jena.hpl.hp.com/ARQ/function# SELECT ?s2 WHERE { BIND(http://example.org

typed literals to java classes, problem with short and byte.

2014-05-12 Thread Tim Harsch
According to the docs: http://jena.apache.org/documentation/notes/typed-literals.html These are all available as static member variables from com.hp.hpl.jena.datatypes.xsd.XSDDatatypehttp://jena.apache.org/documentation/javadoc/jena/com/hp/hpl/jena/datatypes/xsd/XSDDatatype.html . Of these

String addition in ARQ?

2014-04-21 Thread Tim Harsch
Hi, I've been trying to figure out an issue with addition of strings in SPARQL. According to the DAWG evaluation test at: http://www.w3.org/2009/sparql/docs/tests/summary.html#functions-plus-1 1 + 2 != 12, but ARQ run via Fuseki-1.0.1 would seem to disagree. I also tried running the following

Re: Dropping Java 6 Support?

2014-04-21 Thread Tim Harsch
Rob, and so a workaround after Java 6 support is dropped will be to build from source yourself.  I don't think that once support is dropped, you can build from source for long.  If Jena project makes use of a new language feature, or library included in Java 7 or Java 8, running Jena with

Re: Dropping Java 6 Support?

2014-04-21 Thread Tim Harsch
correction: building from source, with Java 6.   I'm guessing byte code compatibility of the different versions is the same. On , Tim Harsch harschw...@yahoo.com wrote: Rob, and so a workaround after Java 6 support is dropped will be to build from source yourself.  I don't think

Re: String addition in ARQ?

2014-04-21 Thread Tim Harsch
, 2014 at 1:39 PM, Tim Harsch harschw...@gmail.com wrote: Hi, I've been trying to figure out an issue with addition of strings in SPARQL. According to the DAWG evaluation test at: http://www.w3.org/2009/sparql/docs/tests/summary.html#functions-plus-1 1 + 2 != 12, but ARQ run via Fuseki

Re: String addition in ARQ?

2014-04-21 Thread Tim Harsch
explicitly requested, as in: (xsd:integer(?x) + xsd:integer(?y) AS ?sum). Regards, Paul On Mon, Apr 21, 2014 at 1:39 PM, Tim Harsch harschw...@gmail.com wrote: Hi, I've been trying to figure out an issue with addition of strings in SPARQL. According to the DAWG evaluation test at: http

error in Jena Spatial Documentation

2014-01-21 Thread Tim Harsch
Hi all, Just a quick note to point out an error I found in the documentation at http://jena.apache.org/documentation/query/spatial-query.html Under the section Property Function Library for spatial:withinCircle it states. The distance *units* can be: kilometers/km, miles/mi, meters/m,

Re: what is the purpose of table unit?

2014-01-09 Thread Tim Harsch
Hi Andy, Thanks.  Thls explanation helped clue me in on what I needed to do to fix my transform.  As always, I appreciate the help! Tim On Wednesday, January 8, 2014 2:55 PM, Andy Seaborne a...@apache.org wrote: On 08/01/14 19:53, Tim Harsch wrote: Hi, I'm trying to write a transformer

what is the purpose of table unit?

2014-01-08 Thread Tim Harsch
Hi, I'm trying to write a transformer on a spatial property function.  For example: The following algbra (propfunc http://jena.apache.org/spatial#withinBox     ?s (37.6315270872214 -122.52347356152336 37.81401629628255 -122.35095387768547)     (table unit)   ) Comes in to: public

convert Node to Expr

2013-11-14 Thread Tim Harsch
Is there a way to convert from com.hp.hpl.jena.graph.Node to com.hp.hpl.jena.sparql.expr.Expr ? Thanks, Tim

Re: UNSAID keyword

2013-11-01 Thread Tim Harsch
: NOT IN is valid syntax, see http://www.w3.org/TR/sparql11-query/#func-not-in Rob On 31/10/2013 22:44, Tim Harsch harschw...@yahoo.com wrote: My thoughts as well, and also NOT IN? On Thursday, October 31, 2013 2:54 PM, Andy Seaborne a...@apache.org wrote: On 31/10/13 21:35, Tim Harsch

UNSAID keyword

2013-10-31 Thread Tim Harsch
Hello, The docs at http://jena.apache.org/documentation/query/negation.html Say that UNSAIDis an alias for NOT EXISTS I wasn't familiar with that keyword so gave it a try at sparql.org and got: Error 400: Parse error: # Names of people who have not stated that they know anyone PREFIX foaf:

Re: UNSAID keyword

2013-10-31 Thread Tim Harsch
My thoughts as well, and also NOT IN? On Thursday, October 31, 2013 2:54 PM, Andy Seaborne a...@apache.org wrote: On 31/10/13 21:35, Tim Harsch wrote: Hello, The docs at http://jena.apache.org/documentation/query/negation.html Say that UNSAIDis an alias for NOT EXISTS I

Re: Constructing a GraphStoreNull using DatasetNullAssembler

2013-10-29 Thread Tim Harsch
I discovered DatasetAssemblerVocab which helped me realize I was using a wrong prefix.  So, looks like this will do it: @prefix ja:      http://jena.hpl.hp.com/2005/11/Assembler# . #dataset rdf:type      ja:DatasetNull . On Tuesday, October 29, 2013 11:10 AM, Tim Harsch harschw...@yahoo.com

Re: jena-text assembler file not working for me

2013-10-28 Thread Tim Harsch
') ;         rdfs:label ?label so it is accessing the default graph at rdfs:label -- no matches, no results. Remove the tdb:unionDefaultGraph - also try with out the rdfs:label to show the index does return something.     Andy On 25/10/13 18:56, Tim Harsch wrote: Hi all, I

jena-text assembler file not working for me

2013-10-25 Thread Tim Harsch
Hi all, I was playing around with the new jena-text module.  I downloaded from svn the jena-2.11.0 tag and ran the JenaTextExample1 example.  It failed with the following error: Exception in thread main org.apache.jena.riot.RiotNotFoundException: Not found: data.ttl this was simple to fix as

Re: RDF/XML serializer issue with blank nodes

2013-10-07 Thread Tim Harsch
5, 2013 3:49 AM Subject: Re: RDF/XML serializer issue with blank nodes Hi Tim, It's not to do with blank nodes. On 05/10/13 02:05, Tim Harsch wrote: The following gist: https://gist.github.com/harschware/6835202 shows what I think may be a bug in the RDF/XML serializer.  If I'm

RDF/XML serializer issue with blank nodes

2013-10-04 Thread Tim Harsch
The following gist: https://gist.github.com/harschware/6835202 shows what I think may be a bug in the RDF/XML serializer.  If I'm not mistaken the output should look like something like this:   rdf:Description rdf:nodeID=b0     ns0:p xmlns:ns0=http://; rdf:resource=http://o/   /rdf:Description

Where is this link?

2013-04-11 Thread Tim Harsch
There is a link referenced at: http://seaborne.blogspot.com/2007/08/syntax-comparison-of-n3-and-turtle.html for: Some notes on the syntax differences between N3 and Turtle that is broken.  I once added a comment for the new location, but that one is broken too now.  Did it make it to the new

SPARUL grammar question for ARQ

2012-06-18 Thread Tim Harsch
According to sparql.org this parses: DELETE WHERE { ?s ?p ?o }  According to the spec empty brackets are required in the construct template. http://www.w3.org/Submission/SPARQL-Update/#rConstructTemplate Is this an extension for ARQ, or am I mis-reading the grammar?  Is there a pedantic

Re: SPARUL grammar question for ARQ

2012-06-18 Thread Tim Harsch
Doh, Google did it to me again.  I should have noticed it in the URL. thanks, tim From: Andy Seaborne a...@apache.org To: users@jena.apache.org Sent: Monday, June 18, 2012 12:52 PM Subject: Re: SPARUL grammar question for ARQ On 18/06/12 20:38, Tim Harsch

literals as predicates

2012-06-18 Thread Tim Harsch
Not sure what I am seeing here.  Is it OK for literal's to be predicates in this case? 1) Start up Fuseki-0.2.1 incubating 2) load books.ttl 3) run this PREFIX dc: http://purl.org/dc/elements/1.1/ INSERT {    ?s ?c 1 } WHERE {     ?s dc:title  ?c . } 4) run this (notice literal as

Re: literals as predicates

2012-06-18 Thread Tim Harsch
Oops forgot to say the query for #4: SELECT * { ?s ?p ?o } From: Tim Harsch harschw...@yahoo.com To: JENA-USERS jena-us...@incubator.apache.org Sent: Monday, June 18, 2012 5:12 PM Subject: literals as predicates Not sure what I am seeing here.  Is it OK