http://factforge.net/resource/dbpedia

2016-04-28 Thread kumar rohit
Hello What is "http://factforge.net/resource/dbpedia"; and how it is differ from dbpedia.org/resource. How can we use it in our jena code?

Property for matching term from text index?

2016-04-28 Thread Neubert, Joachim
The Jena text index allows to record the literal, which was matched in a text query: (?s ?score ?literal) text:query ('query string') (from https://jena.apache.org/documentation/query/text-query.html). When returning the result of a construct query, I want to attach the matching term (?liter

Re: Property for matching term from text index?

2016-04-28 Thread Osma Suominen
Hi Joachim! If you know the property that the index is based on, why not use that? For example, skos:prefLabel or rdfs:label. Or am I missing something? -Osma 28.04.2016, 11:39, Neubert, Joachim wrote: The Jena text index allows to record the literal, which was matched in a text query:

AW: Property for matching term from text index?

2016-04-28 Thread Neubert, Joachim
Hi Osma, That wouldn't work as wanted: First, the index may be based on several properties, and I cannot determine easily which was matched. Second, if I return e.g. multiple altLabels, the matching one cannot be discriminated from all others. So I'm looking for something which works like highl

Re: How to read from file & web in one query

2016-04-28 Thread Lorenz B.
As Andy suggested, have a look at the documentation of the SPARQL 1.1 "SERVICE" feature. I have one locan ontology from Protege and another I want to query dbpedia endpoint. The scenario is something like I have is Subject and property from my protege ontology and object which I already importe

Re: resource rdfs label

2016-04-28 Thread Lorenz B.
You can only get the rdfs:label if it's contained in the dataset. Otherwise you would have to extract the URI fragment resp. what's behind the '/' . You should not be looking at the URI as a label. How did you try rdfs:label? Something like this should work: SELECT * WHERE { ?x tre:has_bo

Re: Query display nothing

2016-04-28 Thread Lorenz B.
Debugging a query is more efficient if you print the query to the command line first, and put it in the Virtuoso web interface - I suppose that you use the offical DBpedia endpoint. By the way, it's not clear why you call toString() on "x" . I think you need to provide more information, before

Re: Rules engine numeric built-ins not succeeding

2016-04-28 Thread Dave Reynolds
Hi David, On 27/04/16 23:27, Martin, David wrote: Rules engine built-ins that take numeric arguments, such as sum and greaterThan, are not working for me. My situation is as follows: I'm loading a simple NT file into a default model: Model contextData = FileManager.get().loadModel(con

Re: Query display nothing

2016-04-28 Thread mehmet mehmet
Yes I used Dbpedia endpoint and if I do not give call to toString(), it gives me error. Virus-free. www.avast.com

Re: Query display nothing

2016-04-28 Thread Andy Seaborne
On 28/04/16 12:55, mehmet mehmet wrote: Yes I used Dbpedia endpoint and if I do not give call to toString(), it gives me error. The something else is wrong. In java, String.toString() is defined to be "return this;" Please provide a minimal, complete example of your code. minimal -> just en

Re: http://factforge.net/resource/dbpedia

2016-04-28 Thread A. Soroka
For the first question, you need to request support from whomever runs http://factforge.net. As to how you use it in Jena code, that is much too vague a question. Can you be a good deal more specific? What are you trying to do? --- A. Soroka The University of Virginia Library > On Apr 28, 2016,

[Urgent] Query execution in Apache-Jen

2016-04-28 Thread abhishek raj
Hello everyone, I want to know the modules involved in query execution. Suppose I want to insert my own module in Apache-Jena for Query over some rdf-graph. What should I do ?

Error during text index

2016-04-28 Thread Sorin Gheorghiu
Hello, Jena text index returned the following error: # java -cp /opt/apache-jena-fuseki-2.3.1/fuseki-server.jar jena.textindexer --desc=/etc/default/fuseki/jena-text-config.ttl java.lang.UnsupportedOperationException: http://d-nb.info/standards/elementset/gnd#SeriesOfConferenceOrEvent is not

Namespace prefixes in Jena Models

2016-04-28 Thread Scoggan, Tom
When writing a Model to an RDF string, I currently do something like this: 1. Use the model.listNameSpaces() method to get the list of namespaces used --- this doesn't include namespaces used in URI's in the object position of triples 2. Manually add the missing namespaces for URI's

Re: [Urgent] Query execution in Apache-Jen

2016-04-28 Thread Andy Seaborne
On 28/04/16 15:04, abhishek raj wrote: Hello everyone, I want to know the modules involved in query execution. Use all of them - use maven and depend on apache-jena-libs http://jena.apache.org/download/maven.html thenn you won't miss recursive dependencies. Suppose I want to insert my own

Re: Namespace prefixes in Jena Models

2016-04-28 Thread Andy Seaborne
On 28/04/16 15:56, Scoggan, Tom wrote: When writing a Model to an RDF string, I currently do something like this: 1. Use the model.listNameSpaces() method to get the list of namespaces used --- this doesn't include namespaces used in URI's in the object position of triples Model.listNa

Re: Error during text index

2016-04-28 Thread Andy Seaborne
Hi Sorin, I'm curious as to why you are indexing a URI and what you see the benefit of that. You might at least want to set the analyser carefully. Andy PS I fixed the cause of the "UnsupportedOperationException" but only in the sense that it now issues a warning and skips the non-l

Re: http://factforge.net/resource/dbpedia

2016-04-28 Thread kumar rohit
I want to know how can I use this in my Jena query? http://factforge.net/resource/dbpedia/Inertia Can we use the "Inertia" as a resource i-e* dbr:Inertia rdfs:label ?label* On Thu, Apr 28, 2016 at 1:58 PM, A. Soroka wrote: > For the first question, you need to request support from whomever run

Re: Error during text index

2016-04-28 Thread Sorin Gheorghiu
Hi Andy, I need just the type of the entry, from the example just the last part 'SeriesOfConferenceOrEvent'. If possible I would set an analyser which would trim the first part, but I don't know how. Thanks Sorin Am 28.04.2016 um 17:25 schrieb Andy Seaborne: Hi Sorin, I'm curious as to w

RE: Namespace prefixes in Jena Models

2016-04-28 Thread Scoggan, Tom
Thanks, Andy. Is the answer to this question "no" as well? Is there an alternative to model.listNameSpaces() that will also return namespaces used in URI's in the object position of triples? -Original Message- From: Andy Seaborne [mailto:a...@apache.org] Sent: Thursday, April 28,

Re: http://factforge.net/resource/dbpedia

2016-04-28 Thread A. Soroka
There is nothing in any way unusual about the URI about which you are asking, so you should be able to use it like any other URI. Beyond that, please be much more specific about how you are creating and using your query. Please give us some actual code that you have written and then we can give

Re: Rules engine numeric built-ins not succeeding

2016-04-28 Thread Martin, David
Thanks for taking a look, and finding the problem, Dave! I don't know how I missed that. Seems like a case of not seeing the trees because of the forest. --- David --- with personal assistance by Siri > On Apr 28, 2016, at 3:48 AM, Dave Reynolds wrote: > > Hi David, > >> On 27/04/16 23:27, M

Re: [Urgent] Query execution in Apache-Jen

2016-04-28 Thread abhishek raj
First of all, sorry for the use "URGENT" Now, when we open source-code of Apache-Jena (The source distribution, which includes the source for Fuseki and all modules in the release jena-3.0.1-source-release.zip (MD5, PGP ) we got many files like jena-bas

Re: Error during text index

2016-04-28 Thread Osma Suominen
Hi Sorin! Why do you need the type in the text index? The text index is designed to store literals. It does not know how to handle URIs at all. Generally what you would do to combine text search with a restriction on rdf:type is to use separate query patterns, e.g. { ?s text:query 'nucle