Re: use aggregates in CONSTRUCT query

2015-11-02 Thread Milorad Tosic
Peter, A pragmatic way would be to use a nested SELECT first, where you can define aggregates that you would latter use in CONSTRUCT as usual. Regards,Milorad From: Martynas Jusevičius To: users@jena.apache.org Sent: Monday, November 2, 2015 12:23 PM Subject: Re: use aggregates in

Re: Performance Cost of Reification

2015-10-08 Thread Milorad Tosic
Recently, there was a short discussion about different ways to approach the reification in practice. I found quite useful a reference [1] mentioned in the discussion. Regards,Milorad [1] Loris Bozzato and Luciano Serafini, Knowledge Propagation in Contextualized Knowledge Repositories: an Experim

Re: SPARQL Query Generation

2015-04-22 Thread Milorad Tosic
Amal, That is a very interesting research question. We have given it some initial thoughts but far from any practical solution. Please keep us posted on your progress and let us know if you have any published work on that topic either your own or from other authors. RegardsMilorad From:

Re: A question about service descriptions

2015-02-05 Thread Milorad Tosic
Hi Daniel, As you correctly noted, default graph of a dataset shouldn't depend on a query. In other words, default graph depends on the dataset but neither on a SPARQL endpoint nor on a specific SPARQL query. Since the second case is a query dependent interpretation it should not be correct inte

Re: Very slow SPARQL query on TDB

2015-01-28 Thread Milorad Tosic
Hi Laurent, I would give a try to a different sequencing in the query. For example: PREFIX base:PREFIX rdf: PREFIX XMLS: SELECT ?x{ ?image base:sopInstanceUID "1.2.840.113564.10656621.20130

Re: Jena / Stanbol success stories?

2014-11-25 Thread Milorad Tosic
Our Semantic Linked Data management platform www.tasorone.com uses Jena's ARQ and offers Jena TDB based implementation as a default triplestore.   Regards,Milorad From: Phillip Rhodes To: users@jena.apache.org; d...@stanbol.apache.org Sent: Monday, November 24, 2014 4:19 AM Subject

Re: materialization of an ordering relation using SPARQL?

2014-03-10 Thread Milorad Tosic
> > From: Joshua TAYLOR >To: "users@jena.apache.org" ; Milorad Tosic > >Sent: Monday, March 10, 2014 4:01 PM >Subject: Re: materialization of an ordering relation using SPARQL? > > >On Fri, Mar 7, 2014 at 6:23 AM, Milorad Tosic wrote: > >&g

materialization of an ordering relation using SPARQL?

2014-03-07 Thread Milorad Tosic
Hi, I am aware that the question is immediately related to Jena, but  it is SPARQL related so I hope it would be interesting for the group. If we have a set of resources that can be ordered according to some value, is it possible to materialize the order using SPARQL? For example, let us giv

Re: SPARQL QUERY duplicate

2014-02-27 Thread Milorad Tosic
Hi, Sometimes labels or some other Literal values may be specified multiple times in different languages. If that is the case then you would get the given result for the given query. Milorad > > From: Nagore Salaberria >To: users@jena.apache.org >Sent: Thur

post processing ResultSet

2014-02-02 Thread Milorad Tosic
Hi, I need to post process ResultSet such that few new columns are custom computed by my code and inserted into the ResultSet. For example, let's have the following result set: | a | b | | 1 | 2 | I would like to return the following resultset instead (that would contain sum c = a + b) | a |

Re: is there reasoning outside a reasoner in Jena?

2014-01-07 Thread Milorad Tosic
Thanks for the full disclosure. Milorad > > From: Dave Reynolds >To: users@jena.apache.org >Sent: Tuesday, January 7, 2014 9:53 PM >Subject: Re: is there reasoning outside a reasoner in Jena? > > >On 07/01/14 16:40, Milo

Re: is there reasoning outside a reasoner in Jena?

2014-01-07 Thread Milorad Tosic
l, we do not know about BNs" - that actually is exactly what you did in code. Right? Milorad > > From: Dave Reynolds >To: users@jena.apache.org >Sent: Tuesday, January 7, 2014 2:52 PM >Subject: Re: is there reasoning outside a reasoner in Jena

is there reasoning outside a reasoner in Jena?

2014-01-07 Thread Milorad Tosic
Hi, I'm reading the Jena paper [1] (which is very nice and useful, BTW), where I found the following: "Prior to this release, Jena used a heuristic method to attempt to associate restriction properties with the classes sub-classing that restriction. Since there were problems with precisely def

Re: Regex performance in relation to the BGP

2014-01-07 Thread Milorad Tosic
Andy, Thanks for the efforts to write this great explanation! IMHO, it is at least as valuable as a published paper. Regards, Milorad > > From: Andy Seaborne >To: users@jena.apache.org >Sent: Tuesday, January 7, 2014 10:43 AM >Subject: Re: Regex performance

parsing linked-USDL ttl in jena

2013-12-02 Thread Milorad Tosic
Hi, When trying to load the .ttl file [1] into Jena 2.11.0 we get the error [2]. Is there a Jena setting that we are doing wrong or the syntax of the data is corrupted? Thanks for help in advance, Milorad [1] https://raw.github.com/linked-usdl/usdl-core/master/usdl-business-roles.ttl [2] ERRO

Re: finding where an anonymous individual came from

2013-11-29 Thread Milorad Tosic
can write a SPARQL query that would answer the question about the number of persons. In fact, it can not answer anything about persons at all? Milorad > > From: Joshua TAYLOR >To: "users@jena.apache.org" ; Milorad Tosic > >Sent: Frid

Re: finding where an anonymous individual came from

2013-11-27 Thread Milorad Tosic
Hi Thomas, It looks like that you are trying to address the skolemization problem [1]? Blank nodes are considered 'something that not exist' when it comes to URIs and resources. They are simply wrappers for resources and not resources on their own. So, something that doesn't exists can not have

Re: SPARQL and FundRef RDF Registry

2013-10-30 Thread Milorad Tosic
Hi, I probably didn't understand what you need. The following query may help? SELECT ?r ?lf WHERE { BIND( as ?r)  ?r ?l . ?l ?lf . } Regards, Milorad >_

Re: On how to miss a language tag

2013-10-29 Thread Milorad Tosic
Hi, What you are saying is perfectly justified by the RDF/SPARQL background theory. However, let us take a look at a practical scalability issue for a moment.  Let us given a triplestore with N triples where N is a large number and the two queries: Q1: SELECT * WHERE {   ?Version cnt:il8nslug

Re: Tdbloader windows 8 RIOT Exception

2013-10-08 Thread Milorad Tosic
.org >Sent: Tuesday, October 8, 2013 1:57 PM >Subject: Re: Tdbloader windows 8 RIOT Exception > > >Yes, you can add it as a registered file extension for RDF/XML > >RDFLanguages.RDFXML.getFileExtensions().add("owl"); > >Not tested but should work > >Rob &g

Re: SPAM-HIGH: Tdbloader windows 8 RIOT Exception

2013-10-08 Thread Milorad Tosic
Hi, Is there a way to configure Jena (from Java classes API) to consider .owl files as they are .rdf? Where to look into API for the right place to make the configuration? Namely, if i want to let users to load files into Jena, I am not able to rename the input files but I must enable loading .

Re: semantics of the FROM clause in SPARQL queries

2013-10-02 Thread Milorad Tosic
es > > >On 02/10/13 10:41, Milorad Tosic wrote: > >> (arq-2.8.7, jena-2.6.4, tdb-0.8.9) > >Quite old.  Thgere may well have been fixes. > >> Next, let us run the following query ("return all resources that have a >> property with value  and a property

semantics of the FROM clause in SPARQL queries

2013-10-02 Thread Milorad Tosic
Hi, What is the intended semantics of the FROM clause in SPARQL queries? I got confused with the results of the following tests that I run against a rdf store (arq-2.8.7, jena-2.6.4, tdb-0.8.9): Let us have two datasets in a single triplestore: PREFIX ex: ex:ds1 { .

Re: SPARQL Query which Connects Individuals from Different Classes

2013-08-19 Thread Milorad Tosic
Yes, there is a syntax error in the query. Instead of VALUES (?gender ?city) {base:Gender base:City} it should be VALUES (?gender ?city) {(base:Gender base:City)} Regards, Milorad > > From: Darius Miliauskas >To: users@jena.apache.org; joshuaaa...@gmail.com

Re: best practice in assigning URIs to individuals

2013-08-08 Thread Milorad Tosic
is the case in Linked Data is easily supported as well. Milorad > > From: Marco Neumann >To: users@jena.apache.org; Milorad Tosic >Sent: Thursday, August 8, 2013 9:42 AM >Subject: Re: best practice in assigning URIs to individuals > >

Re: best practice in assigning URIs to individuals

2013-08-08 Thread Milorad Tosic
Yes, that should be sufficient. Thanks, Milorad > > From: Andy Seaborne >To: users@jena.apache.org >Sent: Wednesday, August 7, 2013 10:00 PM >Subject: Re: best practice in assigning URIs to individuals > > >On 07/08/13 10:50, Milora

Re: best practice in assigning URIs to individuals

2013-08-07 Thread Milorad Tosic
Thanks for pointing me to the list! Milorad > > From: Olivier Rossel >To: users@jena.apache.org; Milorad Tosic >Sent: Wednesday, August 7, 2013 12:20 PM >Subject: Re: best practice in assigning URIs to individuals > > >May be thi

Re: best practice in assigning URIs to individuals

2013-08-07 Thread Milorad Tosic
the class is defined in >> O2. >> > >> > What should be best practice to do: "d1:R rdf:type d2:C2" or "d2:R >> rdf:type d2:C2"? >> > >> > I believe both are conceptually correct statements but I am not sure >> whether the second stateme

best practice in assigning URIs to individuals

2013-08-06 Thread Milorad Tosic
lass is defined in O2. What should be best practice to do: "d1:R rdf:type d2:C2" or "d2:R rdf:type d2:C2"? I believe both are conceptually correct statements but I am not sure whether the second statement is in accordance with Linked Data principles. Thanks, Milorad Tosic

Re:

2013-04-03 Thread Milorad Tosic
>  >>> 58) >> > >> > >> > On 30/03/13 13:38, John A. Fereira wrote: >> >> Specifically, you'll need to include the commons-logging jar file in >> your >> >> classpath.  Typically that would mean specifying a directory which

Re:

2013-03-30 Thread Milorad Tosic
Looks like you need to include an additional library for org.apache.commons.logging.LogFactory class. Regards, Milorad > > From: aarthi >To: Milorad Tosic ; users >Sent: Saturday, March 30, 2013 1:56 PM >Subject: > >hi.. >  i

Re: graph merge in SPARQL

2013-03-28 Thread Milorad Tosic
To: users@jena.apache.org >Sent: Thursday, March 28, 2013 3:36 PM >Subject: Re: graph merge in SPARQL > >On 28/03/13 13:14, Milorad Tosic wrote: >> Hi, >> >> The SPARQL standard states that multiple FROM clauses in a single >> SPARQL query should be interpreted as a

Re: graph merge in SPARQL

2013-03-28 Thread Milorad Tosic
ursday, March 28, 2013 3:36 PM >Subject: Re: graph merge in SPARQL > >On 28/03/13 13:14, Milorad Tosic wrote: >> Hi, >> >> The SPARQL standard states that multiple FROM clauses in a single >> SPARQL query should be interpreted as a graph merge operation. But, I >>

graph merge in SPARQL

2013-03-28 Thread Milorad Tosic
Hi, The SPARQL standard states that multiple FROM clauses in a single SPARQL query should be interpreted as a graph merge operation. But, I get strange behavior in this case not as specified. At the end of the message I first include results of a illustrative example that indicates that graphs

Re: Is Jena / RDF / OWL the right fit?

2013-02-07 Thread Milorad Tosic
Hi Travis, GENI project [1] have developed OWL extension of the NDL (Network Description Language) [2] set of ontologies. You may find it informative as well as useful for your purpose particularly NDL-OWL since it has extensions for computational infrastructure. Regards, Milorad Tosic [1

Re: Is there a way to use a wildcard in a field in a model.listStatements

2013-01-24 Thread Milorad Tosic
Hi, There is a kind of conceptual impedance mismatch in this question. Here is why: Subjects in RDF may be resources or blank nodes. Resources are identified by URIs while blank nodes are a special kind of 'non-existing' resources (that do not have global identity assigned). So, it doesn't make

Re: Fuseki Error Leading to 500 Server Error?

2012-12-12 Thread Milorad Tosic
n) SPARQL queries are executed against a (regular according to specification) RDF dataset containing resources with space in the resource name. However, it would be very nice if Jena would tolerate the situation somehow. I am sure there is no fully correct solution to the problem at Jena lev

Re: FILTER with IN clause in subqueries

2012-08-31 Thread Milorad Tosic
>and a long way from the IN.  Parsing is one-pass, top-to-bottom.  An >error at line 8 will be due to something around line 8. > >> arq-2.8.7.jar >> jena-2.6.4.jar >> tdb.0.8.9.jar > >While those are several versions ago, I don't recall any bu

Re: FILTER with IN clause in subqueries

2012-08-31 Thread Milorad Tosic
-2.8.7.jar jena-2.6.4.jar tdb.0.8.9.jar Thanks, Milorad >____ > From: Andy Seaborne >To: users@jena.apache.org >Sent: Thursday, August 30, 2012 7:42 PM >Subject: Re: FILTER with IN clause in subqueries > >On 30/08/12 15:37, Milorad Tosic w

Re: Sparql 11 Remote Update Query in J2EE container

2012-08-28 Thread Milorad Tosic
# Enschedepad 76 ># 1324 GJ Almere ># The Netherlands ># tel. +31(0)36-5347479 >## > > > >From:  Milorad Tosic >To:    "users@jena.apache.org" , >Date:  28-08-2012 11:17 >Subject:        Re: Sparql 11 Remote Update Query in J2EE c

Re: Sparql 11 Remote Update Query in J2EE container

2012-08-28 Thread Milorad Tosic
Hi, I have had a similar problem some time ago and it turned to be XML compiler issue that is solved if the container is directed to use appropriate version of XML compiler. What worked for me is the following settings in web.xml:     regards, Milorad > >

Re: blank nodes in ARQ

2012-07-09 Thread Milorad Tosic
y 9, 2012 3:46 PM >Subject: Re: blank nodes in ARQ > >On 09/07/12 13:45, Milorad Tosic wrote: >> >> >> Hi, >> >> I am aware of some earlier discussions on the list about blank nodes as well >> as discussions on other places (e.g. [1]). So, my intention he

blank nodes in ARQ

2012-07-09 Thread Milorad Tosic
Hi, I am aware of some earlier discussions on the list about blank nodes as well as discussions on other places (e.g. [1]). So, my intention here is not to launch a general purpose theoretic discussion here. Instead, I would focus on the following question: In the paper [2], authors say: "Fo

Re: I need to get the root element of a ontology

2012-07-05 Thread Milorad Tosic
Would somebody please give us more details about what are dependencies between Fuseki and Jena/ARQ/TDB? Thanks, Milorad > > From: Federico López >To: users@jena.apache.org; Milorad Tosic >Sent: Thursday, July 5, 2012 10:49 PM >Subject: Re: I

Re: I need to get the root element of a ontology

2012-07-05 Thread Milorad Tosic
;> > >>> > 2012/7/5 Federico López >>> > >>> >> I try the two queries in my Java project (I usea ARQ 2.8.8 and Fuseki >>> >> 0.2.2) using with JUnit test. >>> >> With the FILTER NOT EXISTS sentece takes 0.724s (or less)

Re: I need to get the root element of a ontology

2012-07-05 Thread Milorad Tosic
the FILTER NOT EXISTS sentece takes 0.724s (or less) querying the >> roots in RadLex Ontology ( 234.442 triples), with the MINUS sentence >> takes 56.762s (even more)... >> >> >> 2012/7/5 Andy Seaborne >> >>> On 05/07/12 18:30, Milorad Tosic wrote: >

Re: I need to get the root element of a ontology

2012-07-05 Thread Milorad Tosic
Would there by any differences in performance or eventually in result set if we would substitute FILTER NOT EXISTS { ?root rdfs:subClassOf ?super } with MINUS { ?root rdfs:subClassOf ?super } in the previous query? Milorad > > From: Federico López >To: users@

Re: Best way to produce Ontology from XSD

2012-06-09 Thread Milorad Tosic
Lewis, I am wandering what kind of project you are talking about? Is it a student project, research work or commercial? Could you give more details? Regards, Milorad > > From: lewis john mcgibbney >To: users@jena.apache.org >Sent: Saturday, June 9, 2012 2:51

Re: Problem creating a tdb model

2012-05-27 Thread Milorad Tosic
Hi, When we started to use Jena, we had a similar problem: under Tomcat everything was fine but under Resin we got Xerces related exception. We solve it by adding the following configuration: http://caucho.com/ns/resin";>         It may help you too? Milorad >