Re: Trouble using Transformer

2013-03-10 Thread Diogo FC Patrao
Hello Andy Thanks, worked perfectly now! -- diogo patrão On Sun, Mar 10, 2013 at 3:14 PM, Andy Seaborne a...@apache.org wrote: On 10/03/13 02:19, Diogo FC Patrao wrote: Hello I'm studying doing transformations in SPARLQ queries; based on this [1] tutorial, I wrote the code below

custom algebra optimizer

2013-03-20 Thread Diogo FC Patrao
Hello I'm working on a sparql query expander, that is, it add triples and filters to a query in order to emulate some inference (say you have A - B AND C, and a query SELECT * { ?s rdfs:type A }, it would return SELECT * { ?s rdfs:type B. ?s rdfs:type C}). I'm manipulating sparql queries on the

Re: custom algebra optimizer

2013-03-22 Thread Diogo FC Patrao
, Mar 21, 2013 at 1:45 AM, Diogo FC Patrao djogopat...@gmail.com wrote: Hello I'm working on a sparql query expander, that is, it add triples and filters to a query in order to emulate some inference (say you have A - B AND C, and a query SELECT * { ?s rdfs:type A }, it would return SELECT

Re: custom algebra optimizer

2013-03-24 Thread Diogo FC Patrao
, 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 ( ?marafo := ?b+1

Re: custom algebra optimizer

2013-03-24 Thread Diogo FC Patrao
Thanks, Andy, it makes perfect sense now! -- diogo patrão On Sun, Mar 24, 2013 at 7:55 PM, Andy Seaborne a...@apache.org wrote: On 24/03/13 21:12, Diogo FC Patrao wrote: Hi Andy In any case, why is there the need for the assign node? Why not simply: (project (?p ?asvar) (group

sparql optimization

2013-03-29 Thread Diogo FC Patrao
Hello I was experimenting with SPARQL algebras lately, and got some doubts about sparql optimization. First, all of the optimizations listed on [1] are executed? I ask because there's this context thing that I don't really get. Second, it doesn't seem to provide any SERVICE specific

OpAsQuery generating invalid query

2013-03-31 Thread Diogo FC Patrao
Hello I was performing a simple test with OpAsQuery: Here is the original query: PREFIX : http://www.cipe.accamargo.org.br/ontologias/h2tc.owl# PREFIX xsd: http://www.w3.org/2001/XMLSchema# PREFIX mylib: java:dateadd.lib.pkgfor.arq. SELECT ?yearmonth ( count(?document) as ?total )

Re: OpAsQuery generating invalid query

2013-04-01 Thread Diogo FC Patrao
for the report. I've captured this as: https://issues.apache.org/jira/browse/JENA-429 Andy On 31/03/13 21:11, Diogo FC Patrao wrote: Hello I was performing a simple test with OpAsQuery: Here is the original query: PREFIX : http://www.cipe.accamargo.org.br/ontologias

Re: OpAsQuery generating invalid query

2013-04-02 Thread Diogo FC Patrao
as an actual BIND or you get the variable scope error. In algebra terms a project expression and a BIND at the top level of the query pattern are semantically equivalent bar the above proviso about interaction with GROUP BY Rob On 4/1/13 7:47 PM, Diogo FC Patrao djogopat...@gmail.com wrote

SERVICE problem

2013-04-10 Thread Diogo FC Patrao
Hello all I have a d2r-server (a joseki server providing a sparql endpoint using d2rq, a library that translates sparql to sql) and noticed a strange effect when issuing a certain query: SELECT DISTINCT * WHERE { SERVICE http://0.0.0.0:2020/sparql { ?document

Re: SERVICE problem

2013-04-11 Thread Diogo FC Patrao
wrote: On 11/04/13 12:45, Diogo FC Patrao wrote: Hello Andy joseki-3.4.4 Use Fuseki I'll try; Any help in order to get things straight will be appreciated. I can't think of anything You say the query directly to the D2R-server -- what format is that using? Could you show

Re: BIND and custom functions on SPARQL

2013-04-14 Thread Diogo FC Patrao
:12, Diogo FC Patrao wrote: Hello all, I'm trying to run a SPARQL query specifiying a custom function (that does date arithmetics). On ARQ 2.8.8, the following code worked perfectly: PREFIX : http://www.cipe.accamargo.**org.br/ontologias/h2tc.owl#http://www.cipe.accamargo.org.br/ontologias

Re: mappping two ontologies

2013-04-15 Thread Diogo FC Patrao
Hi Aarthi I don't know whether it will solve your problem or not, but since you mentioned ontology mapping, maybe you would like to know the Align API ( http://alignapi.gforge.inria.fr/). Best, -- diogo patrão On Mon, Apr 15, 2013 at 3:42 PM, Chris_Dollin ehog.he...@gmail.com wrote: On

Re: Federated query optimization for independent queries (with join)

2013-05-08 Thread Diogo FC Patrao
Hi Sarven My experience with federated queries is exactly the same as yours. I believe Andy confirmed earlier on the list that there is no optimization on this type of queries. I don't remember, but I think I saw somewhere that if you specify the VALUES keyword (1) on the second federated query,

Re: Populate an owl ontology with mysql database

2013-05-19 Thread Diogo FC Patrao
Hello David Not sure how your data is arranged on MySQL, but have a look on D2R ( http://d2rq.org/), which maps relational data to RDF. cheers -- diogo patrão On Sun, May 19, 2013 at 7:57 AM, David De La Peña da...@delapena.eu wrote: Hello, could I use Jena to populate individuals form a

Re: Achieving reasonably performing federated queries

2013-07-25 Thread Diogo FC Patrao
Hello The better plan for the query you posted would be (1), simply because of the cost of accessing a remote service. But, if the first SERVICEd query would return just a few lines, maybe it would be better to run a couple of times the same query as in (2) than to get all results. I

Re: OWL reasoning with Jena

2013-08-01 Thread Diogo FC Patrao
Hello I can't find the page right now, but Virtuoso, at least the open source version, does not have a comprehensive inference support. In my PhD Thesis, I've 250MB of N3 files, like 10 million triples. Even though it's not really big, I couldn't get inference quickly done within reasonable

Can't get no (Transformer)

2013-08-26 Thread Diogo FC Patrao
Hi all, I'm having trouble figuring out how Transformer class is working. See my classes below: public class GrumpyOptimizer extends TransformCopy { @Override public Op transform(OpUnion opUnion, Op left, Op right) { if ( !( left instanceof OpService right instanceof OpService)) return

Re: Can't get no (Transformer)

2013-08-27 Thread Diogo FC Patrao
. In public Op transform(OpUnion opUnion, Op left, Op right) opUnion is the original input, and left/right the new sub ops due to the transforming the elements below this union, so you can see both original and sub-writes. Andy On 8/26/13 6:22 PM, Diogo FC Patrao djogopat

Re: ARQ Service join strategy

2013-09-04 Thread Diogo FC Patrao
Hi Andy Thanks for answering! I'll look into OpExecutor to see if I get somewhere. Couldn't find the webpage to this quack library, is it published yet? Cheers, Dfcp On Tuesday, September 3, 2013 x-apple-data-detectors://24, Andy Seaborne wrote: On 02/09/13 19:03, Diogo FC Patrao wrote

Re: ARQ Service join strategy

2013-09-05 Thread Diogo FC Patrao
Thanks for your help, Andy! dfcp -- diogo patrão On Thu, Sep 5, 2013 at 8:09 AM, Andy Seaborne a...@apache.org wrote: On 04/09/13 11:32, Diogo FC Patrao wrote: Hi Andy Thanks for answering! I'll look into OpExecutor to see if I get somewhere. Couldn't find the webpage to this quack

Re: semantics of the FROM clause in SPARQL queries

2013-10-02 Thread Diogo FC Patrao
Hi Milorad According to the sparql reference, multiple FROM clauses should mean a query over the merge of all specified datasets, so the expected results you presented should be returned indeed. Is this a bug? http://www.w3.org/TR/sparql11-query/#unnamedGraph Cheers Dfcp Em 02/10/2013 06:42,

Re: Jena with Ontology

2013-10-02 Thread Diogo FC Patrao
your jena model specify which kind of inference? Dfcp Em 02/10/2013 12:48, Ralph Perniciaro ralph.pernici...@eagles.usm.edu escreveu: I believe that I have the same issue. If I create an ontology in protege and define an entity to have a property called title and specify that it should have

jena-text

2013-10-08 Thread Diogo FC Patrao
Hi I'm trying jena-text, and it's great! I know nothing of Lucene, but could put up a server with text indexed in less than an afternoon! Talking with a coleague which knows more of Lucene, he asked about tweaking its parameters or getting the text snipets from it. I couldn't find any info about

Re: jena-text

2013-10-09 Thread Diogo FC Patrao
Hello Andy Talking with a coleague which knows more of Lucene, he asked about tweaking its parameters or getting the text snipets from it. I couldn't find any info about this. What sort of things had your colleague in mind? Like changing the stemer or the stop words list, or in a more

jena-solr, query solving and inference

2013-11-22 Thread Diogo FC Patrao
Hello We've done a lot of experiments with jena-solr today. We loaded a OntModel based on OWL_MICRO, with data in memory, loading a bunch of N3 and OWL files. First, we've loaded a N3 file into a TDB and indexed it, according to the documentation. Then we removed the usage of TDB and instead

Document Manager and File Mapping

2013-11-27 Thread Diogo FC Patrao
Hello, I'm setting up an Jena description file [3](which will be loaded by fuseki as fuseki-server --desc=file.ttl /ds) to serve an OWL file. This OWL imports several other OWL - and as we're in development, I would not like to publish files in the ontology URI yet. So I'm trying to set up a

Document Manager and File Mapping

2013-11-27 Thread Diogo FC Patrao
Hello, I'm setting up an Jena description file [3](which will be loaded by fuseki as fuseki-server --desc=file.ttl /ds) to serve an OWL file. This OWL imports several other OWL - and as we're in development, I would not like to publish files in the ontology URI yet. So I'm trying to set up a

Re: Document Manager and File Mapping

2013-11-29 Thread Diogo FC Patrao
Hi there Does anybody have any idea on this? Or, is there a working example of usage of a document manager (for the latest jena)? Thanks! -- diogo patrão On Wed, Nov 27, 2013 at 7:05 PM, Diogo FC Patrao djogopat...@gmail.comwrote: Hello, I'm setting up an Jena description file [3

Re: Document Manager and File Mapping

2013-12-06 Thread Diogo FC Patrao
, Andy Seaborne a...@apache.org wrote: Try: #document-manager-example a ja:DocumentManager; ja:fileManager [ ja:locationMapper #mapper ]; . (not ja:hasFileManager) Andy On 29/11/13 15:52, Andy Seaborne wrote: On 29/11/13 15:29, Diogo FC Patrao wrote: Hi

Re: Document Manager and File Mapping

2013-12-11 Thread Diogo FC Patrao
Hello Any news on that? All help would be appreciated. Thanks! -- diogo patrão On Mon, Dec 9, 2013 at 11:29 AM, Diogo FC Patrao djogopat...@gmail.comwrote: My bad. Now I tried: #myOntModelSpec a ja:OWL_MEM_MICRO_RULE_INF; ja:documentManager #document-manager-example

Re: OWL Inferencing on TDB database in Fuseki

2013-12-11 Thread Diogo FC Patrao
Hello Jeanette Is your configuration file set to store in memory the results of inferences over TDB data ? I'm interested in loading the whole inference closure at startup time, is that what you're trying to do? Thanks! -- diogo patrão On Tue, Dec 10, 2013 at 3:41 PM, Jeanette Samuelsen

Re: Document Manager and File Mapping

2013-12-13 Thread Diogo FC Patrao
Thanks Andy, it worked fine!! dfcp -- diogo patrão On Fri, Dec 13, 2013 at 8:59 AM, Andy Seaborne a...@apache.org wrote: On 13/12/13 10:56, Andy Seaborne wrote: On 12/12/13 20:02, Diogo FC Patrao wrote: Hi Andy. Thanks for clarifying the whole process. What I was originally trying

Re: inference on tdbquery

2013-12-13 Thread Diogo FC Patrao
Hi Dave Thanks - I guessed that, when specifying the assembler file, it took into consideration the inferences as well. -- diogo patrão On Thu, Dec 12, 2013 at 7:23 PM, Dave Reynolds dave.e.reyno...@gmail.comwrote: On 12/12/13 16:11, Diogo FC Patrao wrote: Hello My question

Re: Inferencing by SPARQL

2017-10-06 Thread Diogo FC Patrao
Hi Please forgive any mistakes below. SPARQL is a language to deal with data; OWL is meant to deal with concepts. You may argue that both can produce the same results. However there is an important difference: the language. As using owl one may represent both concepts and their relations in