Re: SPARQL returned space character for Chinese Ontology

2013-03-18 Thread Chris Dollin
On Monday, March 18, 2013 08:43:38 AM kenney wrote: I am using SPARQL in Jena to query a Chinese Ontology. But the results of the query shows only space character so I can't see the exact character. My Chinese Ontology is utf-8 coded. If I use other methods in Jena to read the Ontology

Re: Super/Subclass relationships in OntModel?

2013-03-18 Thread Joshua TAYLOR
On Mon, Mar 18, 2013 at 10:48 AM, Ed Swing ed.sw...@sas.com wrote: I noticed that the OntClass super/sub relationships do not seem to work properly. Here is a definition of two classes that clearly establish a parent-child relationship: owl:Class rdf:ID=TerrorAttack

Re: Combining TDB + LARQ

2013-03-18 Thread Andy Seaborne
On 18/03/13 01:50, Martino Buffolino wrote: Thanks for the response Andy. So I guess the overall picture would be that I have a TDB dataset stored on disk and I would like to query it using lucene text match like the following: PREFIX pf: http://jena.hpl.hp.com/ARQ/property#SELECT ?doc{

Re: Memory issues with cardinality restriction

2013-03-18 Thread Joshua TAYLOR
On Mon, Mar 18, 2013 at 10:24 AM, Ed Swing ed.sw...@sas.com wrote: I have noticed a problem within Jena when dealing with classes with multiple property restrictions. Here's the snippet of Java code: OntModel m = ModelFactory

Re: Super/Subclass relationships in OntModel?

2013-03-18 Thread Chris Dollin
On Monday, March 18, 2013 02:48:37 PM Ed Swing wrote: I noticed that the OntClass super/sub relationships do not seem to work properly. Here is a definition of two classes that clearly establish a parent-child relationship: owl:Class rdf:ID=TerrorAttack

Re: Super/Subclass relationships in OntModel?

2013-03-18 Thread Joshua TAYLOR
On Mon, Mar 18, 2013 at 12:24 PM, Ed Swing ed.sw...@sas.com wrote: Thanks Joshua for looking into this. From the results you generated, it looks like the Pellet reasoner gets the (more) correct results, while the default Jena reasoner has some issues (Unfortunately, I may not be able to use

Re: Memory issues with cardinality restriction

2013-03-18 Thread Dave Reynolds
On 18/03/13 16:21, Joshua TAYLOR wrote: On Mon, Mar 18, 2013 at 10:24 AM, Ed Swing ed.sw...@sas.com wrote: Because I can use a FunctionalProperty here, I can work around the issue. However, I'm not sure why the simple addition of a single restriction would blow out the memory. The entire

Re: emitting Java beans from RDFs

2013-03-18 Thread Dave Reynolds
On 18/03/13 15:41, Serge Vilvovsky wrote: Hello, I wonder if there is an open-source tool that can provide emitting Java beans from RDFs. I found Jastor, but it uses Jena 2.4 version, which is pretty old and will be in conflict with the newer version of Jena at the classpath. Any advice,

Re: Super/Subclass relationships in OntModel?

2013-03-18 Thread Brian McBride
I spotted an inconsistency in the ontology. #NewsOrganization has a restriction: [[ rdfs:subClassOf owl:Restriction owl:onProperty rdf:resource=#associatedWith / owl:maxCardinality rdf:datatype=xsd;nonNegativeInteger0

Re: Super/Subclass relationships in OntModel?

2013-03-18 Thread Joshua TAYLOR
On Mon, Mar 18, 2013 at 4:06 PM, Brian McBride br...@epimorphics.com wrote: I spotted an inconsistency in the ontology. #NewsOrganization has a restriction: [[ rdfs:subClassOf owl:Restriction owl:onProperty rdf:resource=#associatedWith /

Re: Super/Subclass relationships in OntModel?

2013-03-18 Thread Brian McBride
On 18/03/2013 20:18, Joshua TAYLOR wrote: Wouldn't the maxCardinality 0 mean that every NewsOrganization isn't associatedWith *anything*, so there should never be a [newsOrgX associatedWith foo] to use with [associatedWith domain Person] to infer [newsOrgX a Person]? That's true and I've been

Re: Super/Subclass relationships in OntModel?

2013-03-18 Thread Joshua TAYLOR
On Mon, Mar 18, 2013 at 4:55 PM, Brian McBride br...@epimorphics.com wrote: On 18/03/2013 20:18, Joshua TAYLOR wrote: Wouldn't the maxCardinality 0 mean that every NewsOrganization isn't associatedWith *anything*, so there should never be a [newsOrgX associatedWith foo] to use with

Legal lexical form for a zero XSDDuration ?

2013-03-18 Thread Léonard PETNGA
Hi Jena Community, I'm new to Jena and I would need your help fixing some issues with my code. I'm trying to parse a String in duration format ie *PnYn MnDTnH nMn**S* into an *XSDDuration* datatype that I'll bind to a Node of my inferred graph (in a custom built-in function). To that aim, my

Re: Super/Subclass relationships in OntModel?

2013-03-18 Thread Dave Reynolds
On 18/03/13 20:18, Joshua TAYLOR wrote: On Mon, Mar 18, 2013 at 4:06 PM, Brian McBride br...@epimorphics.com wrote: I spotted an inconsistency in the ontology. #NewsOrganization has a restriction: [[ rdfs:subClassOf owl:Restriction owl:onProperty

Re: Super/Subclass relationships in OntModel?

2013-03-18 Thread Dave Reynolds
On 18/03/13 21:16, Joshua TAYLOR wrote: On Mon, Mar 18, 2013 at 4:55 PM, Brian McBride br...@epimorphics.com wrote: On 18/03/2013 20:18, Joshua TAYLOR wrote: Wouldn't the maxCardinality 0 mean that every NewsOrganization isn't associatedWith *anything*, so there should never be a [newsOrgX

Re: Legal lexical form for a zero XSDDuration ?

2013-03-18 Thread Joshua TAYLOR
On Mon, Mar 18, 2013 at 4:54 PM, Léonard PETNGA lpet...@gmail.com wrote: Hi Jena Community, I'm new to Jena and I would need your help fixing some issues with my code. I'm trying to parse a String in duration format ie *PnYn MnDTnH nMn**S* into an *XSDDuration* datatype that I'll bind to a

Re: Legal lexical form for a zero XSDDuration ?

2013-03-18 Thread Andy Seaborne
On 18/03/13 22:12, Dave Reynolds wrote: On 18/03/13 20:54, Léonard PETNGA wrote: Hi Jena Community, I'm new to Jena and I would need your help fixing some issues with my code. I'm trying to parse a String in duration format ie *PnYn MnDTnH nMn**S* into an *XSDDuration* datatype that I'll bind

Re: Super/Subclass relationships in OntModel?

2013-03-18 Thread Brian McBride
On 18/03/2013 21:36, Dave Reynolds wrote: On 18/03/13 21:16, Joshua TAYLOR wrote: On Mon, Mar 18, 2013 at 4:55 PM, Brian McBride br...@epimorphics.com wrote: On 18/03/2013 20:18, Joshua TAYLOR wrote: Wouldn't the maxCardinality 0 mean that every NewsOrganization isn't associatedWith

Re: emitting Java beans from RDFs

2013-03-18 Thread Al Baker
There's also Empire, which provides JPA for Jena (and others). https://github.com/mhgrove/empire Al On Mon, Mar 18, 2013 at 5:25 PM, Claude Warren cla...@xenei.com wrote: The issue would be how to determine what is an object and what is a property. There are a number of ways to do that. I