Re: Puzzled with Jena text from API: well indexed in Lucene, but SPARQL returns nothing

2017-08-05 Thread Jean-Marc Vanel
This is done ! Here: https://github.com/jmvanel/semantic_forms/blob/master/scala/jena_only/src/main/java/TestTextIndex2.java 2017-08-04 19:38 UTC+02:00, Andy Seaborne : > > > On 30/07/17 11:05, Jean-Marc Vanel wrote: >> I can help you with compile and run the test in Scala, or

(Real) functions of construct query

2017-08-05 Thread Sidra shah
Hello. I am not sure if the Sparql Construct query work works the same like we add a statement using Rdf API? I have read an example which shows: ?x :hascapital ?y which outputs several triples. The article then used Construct query as Construct { ?y :capitalOf ?x} WHERE { ?x :hascapital ?y }

Re: Data or Object properties as String value

2017-08-05 Thread Martynas Jusevičius
I think you might be confusing literal datatypes in RDF/SPARQL and object/datatype properties in OWL. You don't need an ontology to be able to run a query. Just make sure datatypes in your query match your data. If you need to define your domain in an ontology, then you need to define properties

Re: Data or Object properties as String value

2017-08-05 Thread javed khan
Lorenz yes I know object properties connect resources of two classes and it must be URIs.. In our ontology we have object property "hasPublications" which has domain Person and range Publication class (Publication instances can be a Book, Paper or Article) . Users need to type a person

Re: Data or Object properties as String value

2017-08-05 Thread Lorenz B.
> For example, if we have to use filter keyword with a java variable (filter > ?var='javaVariable) in our semantic web application, is it mandatory to use > it as "data property" in our ontology and use it as String type? Obviously, but it depends on the content of javaVariable ... you can also