Re: create/removeStatement execution time

2012-06-25 Thread Dave Reynolds
On 24/06/12 16:12, Lars Wißler wrote: Hi all, I need information on the efficiency of the execution of the createStatement and removeStatement operations on the OntModel, i.e. how many calls of these methods Jena can execute in lets say under 3-4 min. Depends on your hardware, JDK, OS, memory

Re: Property not removed?

2012-06-26 Thread Dave Reynolds
On 26/06/12 09:56, Martynas Jusevičius wrote: Note that the statement seems to point to a bNode so a simple remove is probably not enough anyway. Dave, can you elaborate on this a little? I just meant that the contents of the bNode would remain. For some purposes that might be a problem.

Re: extending crisp to fuzzy

2012-06-28 Thread Dave Reynolds
On 28/06/12 18:27, alisha jindal wrote: Hello List I am trying to extend a simple crisp student ontology having a few number of classes to a fuzzy ontology. I am trying to introduce fuzzy concepts(linguistic variables) such as { dull,average,bright,very bright} on the basis of the percentage

Re: How to check if a graph is a sub-set of another graph?

2012-07-02 Thread Dave Reynolds
On 02/07/12 11:07, Holger Knublauch wrote: On 7/2/2012 18:47, Stephen Allen wrote: On Mon, Jul 2, 2012 at 12:36 AM, Holger Knublauch hol...@knublauch.com wrote: Hi all, I am aware of Graph.isIsomorphicWith, but I need a function that tests whether Graph A is a sub-set of Graph B, including

Re: User Defined XSD Data types

2012-07-10 Thread Dave Reynolds
On 04/07/12 15:04, Atakan Kaya wrote: Hi, I would like to load some user defined XSD Data types to the TypeMapper. I read here: http://jena.sourceforge.net/how-to/typedLiterals.html But, whenever I load those datatypes from a file on my computer (using XSDDatatype.loadUserDefined method),

Re: Slow reasoner update and SWRL problem

2012-07-13 Thread Dave Reynolds
On 13/07/12 07:58, Jan Schäfer wrote: Hi Dave, thank you for your answer. I'll comment below: Am 12.07.2012 22:50, schrieb Dave Reynolds: You'll have to ask on the Pellet list for such hints. I tried that before posting here, but so far no reaction. It's common in other reasoners

Re: Rename Properties in Jena API?

2012-07-16 Thread Dave Reynolds
On 16/07/12 02:48, DHOMAS HATTA FUDHOLI wrote: Hi All, Is there any method in Jena API to rename ObjectProperty or DatatypeProperty? I could find only the way to rename Resource, maybe Class, using renameResource() method in ResourceUtils class. There's nothing built-in, you would have to

Re: Jena+ retrieve information

2012-07-16 Thread Dave Reynolds
On 15/07/12 00:55, Fairouz FakhFakh wrote: Hello, I use OWL-S API (you find attached). I know that OWL-S API use Jena.So, I would like to retrieve or extract the value of a datatypeProperty . For example the value of a serviceProduct., serviceName, ...Can I use this with Jena and how

Re: Rename Properties in Jena API?

2012-07-16 Thread Dave Reynolds
On 16/07/12 08:45, Ian Dickinson wrote: Hi Dhomas, On 16/07/12 02:48, DHOMAS HATTA FUDHOLI wrote: Hi All, Is there any method in Jena API to rename ObjectProperty or DatatypeProperty? I could find only the way to rename Resource, maybe Class, using renameResource() method in ResourceUtils

Re: Empty derivation files

2012-07-29 Thread Dave Reynolds
Hi, On 29/07/12 20:06, Alejandro Rodríguez González wrote: Hi Dave, Thanks. I've created a small ontology and set of rules which are fired (I print the results and I saw that is making the inference correctly). I checked if derivation is switched on (I've executed setDerivationLogging to

Re: Empty derivation files

2012-07-30 Thread Dave Reynolds
Hi, On 29/07/12 23:48, Alejandro Rodríguez González wrote: Hi Dave, Sorry, I thought that this was minimal enough :-) Just one question: how can I create an inference model without feed the model with the original model? All the examples that I saw use a Model object to load the ontology and

Re: Empty derivation files

2012-07-31 Thread Dave Reynolds
On 30/07/12 23:09, Alejandro Rodríguez González wrote: Just another question: It is possible to see a more detailed debug of the derivations? For example, I want to know why some rules are not being fired, something that will help me to know what I'm doing wrong. Sorry no. There are

Re: Empty derivation files

2012-07-31 Thread Dave Reynolds
On 31/07/12 09:41, Alejandro Rodríguez González wrote: Hi Dave, Thanks, this makes my task harder :-) Let me then ask you a question about the rules that I have. Maybe you can help me with this. Based on the same example that we were talking I want to create a rules that are executed when I

Re: Model.difference method

2012-08-18 Thread Dave Reynolds
On 18/08/12 17:47, Oylum Alatlı wrote: Hi, Does the difference method of the Model class give a structural difference (by paying attention to the blank nodes)? No, it is simply a triple level difference. There is only the isIsomorphicWith test which does bNode matching. Dave

Re: Selecting data using SEM_MATCH

2012-08-24 Thread Dave Reynolds
As far as I know SEM_MATCH et al are proprietary Oracle functions and not part of SPARQL. Dave On 24/08/12 07:12, Mariusz Sepczuk wrote: Hi, I try to get index from family example using SEM_MATCH. For example I do INSERT INTO family_rdf_data VALUES (3, SDO_RDF_TRIPLE_S('family',

Re: Semantic grounding with Jena (Yago)

2012-08-24 Thread Dave Reynolds
On 24/08/12 10:30, Philipp Singer wrote: Hey guys! I am currently working on Wikipedia and have calculated semantic related other Wiki pages based on one given Wiki page. I now want to evaluate my calculations based on a gold standard ontology. My problem now is that it's my first time working

Re: Jena Inference and store to database

2012-08-29 Thread Dave Reynolds
On 29/08/12 14:30, Yoga Indra Pamungkas wrote: I'm using Jena 2.6.4 and build digital library over JSF Framework. The digital library have feature that let users can make anotation to the thesis document base on ontology. What I'm asking is, every anotation is represent by triple rdf, and

Re: Dynamic RDF.type

2012-09-02 Thread Dave Reynolds
On 02/09/2012 08:37, Yoga Indra Pamungkas wrote: Well, I have problem to make dynamic RDF.type. The RDF.type should get dynamic from anotation by user. This is my static RDF.type code : Resource thesis = model.createResource(thesisURI) .addProperty(RDF.type,

Re: Dereferencing URIs using Jena

2012-09-14 Thread Dave Reynolds
Hi, On 14/09/12 11:01, Paul Taylor wrote: Hello everyone, I would like to know how I can use Jena API to dereference a URI for example: http://xmlns.com/foaf/0.1/Person and get the collection of RDF-triples that describe that entity, without having to retrieve the entire FOAF document. I

Re: InfModel performance problem

2012-09-25 Thread Dave Reynolds
On 25/09/12 11:58, Igor Brussilowski wrote: Hi all, I create an InfModel based on the Jena's builtin OWLMicroReasoner, which is extended by my own rules for evaluation of equality of resources based on their owl:hasKey properties like this one: # assuming eg:K is an owl:hasKey property from

Re: InfModel performance problem

2012-09-26 Thread Dave Reynolds
- Von: Dave Reynolds dave.e.reyno...@gmail.com An: users@jena.apache.org CC: Gesendet: 13:43 Dienstag, 25.September 2012 Betreff: Re: InfModel performance problem On 25/09/12 11:58, Igor Brussilowski wrote: Hi all, I create an InfModel based on the Jena's builtin OWLMicroReasoner, which

Re: Jena reading files created by Protege

2012-09-29 Thread Dave Reynolds
On 28/09/12 15:32, Mark Fischer wrote: This pertains to how RDF/XML OWL files written by Protege are read (parsed) by Jena. I noticed that Protege (and the Hermit reasoning engine) both have no problem finding disjoint classes that where created using Protege. That makes sense... wouldn't be a

Re: Can I validate the base model?

2012-09-29 Thread Dave Reynolds
On 29/09/12 16:20, Mark Fischer wrote: Is there some way in which I can attach a reasoning engine to a model and convince it to not do any inferencing? I don't want any of the added triplets. Not sure I follow. If you attach a reasoner to a model then the model is not changed. When you query

Re: Can I validate the base model?

2012-09-29 Thread Dave Reynolds
On 29/09/12 17:42, Mark Fischer wrote: Perhaps my issue here arises from my not quite understanding how validation works. In my mind, I had this simplified to: Here are a bunch of triplets... do they make sense? The reasoning engine then says: I can't be sure, I'll have to add a bunch more

Re: Documentation for Jena reasoners?

2012-10-01 Thread Dave Reynolds
On 01/10/12 17:03, Mark Fischer wrote: Can anybody point me toward any documentation for the various Jena reasoners? There is no documentation beyond the reference manual you have already seen, the javadoc, the code and this list :) I'm using the Owl Ontology Model Spec OWL_MEM_RULE_INF.

Re: A little confused about Ontology being data-driven

2012-10-17 Thread Dave Reynolds
On 17/10/2012 19:21, Joseph Daryl Locsin wrote: I have read here* that ontologies (RDF's in nature) are data-driven Ontologies are not data-driven, an application or design process that uses ontologies *can* be data driven. because one can work with a small ontology and use it for an

Re: RDFS inference missing

2012-10-18 Thread Dave Reynolds
On 18/10/12 08:47, Birte Glimm wrote: Hi, I am trying to use ARQ (2.9.3) in combination with Jena (2.7.3) to answer SPARQL queries with RDFS inferences. I'm missing, however, one inference that is not derived by Jena. Below is a simple code snippet that illustrates the problem. Given (ex:x

Re: Problem with setSameAs() LINKED DATA

2012-10-25 Thread Dave Reynolds
As it says in [1] you need to use at least the MINI reasoner configuration, not MICRO, to get sameAs inference. Dave [1] http://jena.apache.org/documentation/inference/#OWLcoverage On 24/10/12 18:37, Joseph Daryl Locsin wrote: Hello Jena Users, I am trying to link two individuals A and B

Re: Inference

2012-11-07 Thread Dave Reynolds
On 06/11/12 18:39, Scott Streit wrote: Why is the prefix not working? It will work without the prefix. Put your rules and prefix declarations in a file and use Rule.rulesFromURL to parse it. You can manually set prefixes using PrintUtil.registerPrefix in order to parse rules from strings

Re: Inference

2012-11-07 Thread Dave Reynolds
On 07/11/12 00:18, Scott Streit wrote: *Dave, I have some subsequent questions. If you have forward rule:* (?g ie:mandatoryInterestsForGroupI nclusion ?i), noValue(?u ie:hasIndividualInterestOf ?i), noValue(?u ie:memberOf ?g) - * (?u ie:notEligibleFor ?g) This whole thing has

Re: Inference

2012-11-07 Thread Dave Reynolds
On 07/11/12 13:44, Scott Streit wrote: (?u ie:memberOf ?g) - (?g ie:mandatoryInterestsForGroupInclusion ?i) allValue(?i ie:#hasIndivudalInterestOf ?u) If I wrote an allValue builtIn, this would solve the problem correct. You can't have an allValue predicate with that

Re: Inference

2012-11-10 Thread Dave Reynolds
test case. Scott On Fri, Nov 9, 2012 at 11:52 AM, Dave Reynolds dave.e.reyno...@gmail.comwrote: On 09/11/12 16:33, Scott Streit wrote: Ok. I got it. model = ModelFactory.createInfModel(**model.getReasoner(), model); Need to add one to re-create the model, which seems to re-fire

Re: soundness and completeness of general rule reasoner in Jena

2012-11-10 Thread Dave Reynolds
On 09/11/12 20:32, dew dew wrote: Hello all, I have an understanding problem for general rule reasoner in Jena. First, I see that Jena rule language looks like first-order logic, where I can imagine triple predicate when dealing with RDF triples. It's datalog with builtins, not first-order

Re: soundness and completeness of general rule reasoner in Jena

2012-11-10 Thread Dave Reynolds
On 10/11/12 13:37, dew dew wrote: Thank you for answer, Dave. Once you start using the builtins this is no longer true, because (even ignoring the non-logical builtins like noValue) they include arithmetic so you can write rule sets which don't iterate to a fixed-point. Alright, does it mean

Re: Jena Reification

2012-11-16 Thread Dave Reynolds
On 14/11/12 22:23, Scott Streit wrote: I am storing jena statements in Solr I easily create statements Now I have statements stored in Solr in the form of S P O RP1 RP2 RP3 where RP1. RP2 are reified property 1, refied property 2, etc. Now when I pull it off I want to create a statement and

Re: How to get restrictions on a class with Jena Pellet

2012-11-16 Thread Dave Reynolds
On 14/11/12 09:58, José Raúl Ruiz Sarmiento wrote: Hi all, I'm trying to get the restrictions on a class using Jena and the Pellet reasoner. I've read here http://clarkparsia.com/pellet/faq/different-results/ that pellet doesn't return these restrictions as superclasses, as the Jena reasoner

Re: Jena.NET ParserException

2012-11-17 Thread Dave Reynolds
On 17/11/12 14:27, Marco Knietzsch wrote: Hi, I am trying to get Jena.NET up and running but I got stuck trying to build a custom reasoner.I have the following rules-File:@prefix this: URI:/TRPG-Ontology#.@include RDFS.@include OWL. [OwnsContainerOwnsInsides: (?owner this:owns ?container),

Re: Custom rule file - prefix to local file?

2012-11-17 Thread Dave Reynolds
On 17/11/12 19:23, Marco Knietzsch wrote: Date: Sat, 17 Nov 2012 19:09:17 + From: dave.e.reyno...@gmail.com To: users@jena.apache.org Subject: Re: Custom rule file - prefix to local file? On 17/11/12 18:32, Marco Knietzsch wrote: Hi, I want to have a custom reasoner that uses a local

Re: Storing to the correct sub model

2012-11-27 Thread Dave Reynolds
). If Jena is primarily designed to work the other way, then my approach may end up using more memory or? Thanks, Ashish On Tue, Nov 27, 2012 at 1:21 AM, Dave Reynolds dave.e.reyno...@gmail.comwrote: On 23/11/12 08:10, ashish nijhara wrote: Hi All, I have a problem statement

Re: Apply rules to inferred models

2012-12-12 Thread Dave Reynolds
On 12/12/12 04:07, Oana Ureche wrote: Hi all, There is a shortcoming in Jena. Mainly the fact that it cannot handle complex rules.. i.e. throwing the following exception Exception in thread main com.hp.hpl.jena.reasoner.rulesys.impl.LPRuleSyntaxException: Syntax error in backward rule:

Re: Apply rules to inferred models

2012-12-12 Thread Dave Reynolds
wrote: Hi Dave, Well.. I don't know the library well. Thank you for the input. Is there any documentation or tutorials about what you're recommending? Thank you, Oana. Sent from my iPhone On 12/12/2012, at 7:31 PM, Dave Reynolds dave.e.reyno...@gmail.com wrote: On 12/12/12 04:07, Oana

Re: Is this an Owl2.0 Issue?

2012-12-27 Thread Dave Reynolds
[Sorry to be slow, been off-grid for a few weeks.] If I recall correctly isProperty is testing if the term is declared as a property within the ontology (including any associated inference regime). For a built-in term like rdf:type then OWL DL flavours regard this as part of the machinery,

Re: Creating a reflexive Property

2013-01-12 Thread Dave Reynolds
On 11/01/13 16:25, reda chbihi wrote: Hi all, I wanna create some object properties that are reflexive, with JENA, I don't found any method that can perform that !! how can I do that with JENA ? Reflexive is an OWL 2 feature and Jena's built-in helper methods only support OWL 1. However it

Re: disjointWith classes

2013-01-25 Thread Dave Reynolds
inference this may be inferred for you but in any case it is best practice to explicitly declare classes. You can use ontmodel.setStrictMode(false) to disable this checking. Dave Best, Tayfun 2013/1/25 Dave Reynolds dave.e.reyno...@gmail.com You don't need to load your ontology twice. An OntModel

Re: disjointWith classes

2013-01-25 Thread Dave Reynolds
On 25/01/13 21:38, Emanuel Santos wrote: Hi, Thanks for the reply. I'm using OntModel omodel = ModelFactory.createOntologyModel(PelletReasonerFactory.THE_SPEC); OntModel bmodel =ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM) to create the ontologies models that I want. In this case

Re: Regarding Usage of Filter Class

2013-02-04 Thread Dave Reynolds
On 04/02/13 22:35, Joshua TAYLOR wrote: On Mon, Feb 4, 2013 at 4:21 PM, ankur padia padiaan...@gmail.com wrote: hello everyone, Were can we find the tutorial for Filter and ExtendedFilter class of Jena. Thanking you, Ankur Padia. You can download source from

Re: How to get values for the individual?

2013-02-07 Thread Dave Reynolds
On 07/02/13 09:37, Darko Androcec wrote: How can I get values for the OWL individual by using Jena API? I created the OWL ontology using Java and Jena, and I now want to retrieve values for each individual, e.g. I have one individual Customer_1 rdf:Description

Re: Reading a model hangs

2013-02-08 Thread Dave Reynolds
Hi Kevin, On 08/02/13 14:25, Kevin Tyson wrote: Greetings, When my code attempts to read a model that contains approximately 20 imports, all in the same directory as the model file itself, the read hangs for much longer then any anticipated time outs as all of the imports are locally available.

Re: Jena List Class Inferred

2013-02-10 Thread Dave Reynolds
On 08/02/13 19:18, Rodrigo Jardim wrote: Is there some way to discover which classes (or individuals) have been inferred? Maybe some method inside Jena API. Not directly. Generally the best way to do this is to check whether a given statement is in the reasoned graph but not in the original

Re: Axiom

2013-02-12 Thread Dave Reynolds
- Original Message - From: Dave Reynolds dave.e.reyno...@gmail.com To: users@jena.apache.org Cc: Sent: Tuesday, February 12, 2013 11:28 AM Subject: Re: Axiom Jena does not provide an axiom view of OWL directly equivalent to that of the OWL API. If that's what you need then use the OWL API

Re: Jena 2.10.0 : request for pre-release testing

2013-02-16 Thread Dave Reynolds
Tried to test against existing projects but failed to get Maven resolution to work. No doubt user error (my inability to ever have Maven work for me is well known) but I've spend some time on this without getting anywhere. Using: dependency groupIdorg.apache.jena/groupId

Re: Jena 2.10.0 : request for pre-release testing

2013-02-16 Thread Dave Reynolds
/0.10.0-SNAPSHOT/jena-tdb-0.10.0-SNAPSHOT.jar (401 B at 0.5 KB/sec) ]]] Dave On 16/02/13 18:23, Dave Reynolds wrote: Tried to test against existing projects but failed to get Maven resolution to work. No doubt user error (my inability to ever have Maven work for me is well known) but I've spend some

Re: Jena 2.10.0 : request for pre-release testing

2013-02-16 Thread Dave Reynolds
Ignore this. Trying again a few hours later and it works (well, lots of compilation errors due to the Jena changes but at least the artefacts download now.). Have I said how much I hate Maven? Dave On 16/02/13 18:29, Dave Reynolds wrote: I realise that the second set of traces shows Maven

Re: Jena 2.10.0 : request for pre-release testing

2013-02-17 Thread Dave Reynolds
On 17/02/13 11:44, Andy Seaborne wrote: On 16/02/13 22:50, Dave Reynolds wrote: (well, lots of compilation errors due to the Jena changes but at least the artefacts download now.) What were the compilation errors? Mostly the openjena - apache.jena package name change, plus reference

Re: Another newbie problem

2013-02-19 Thread Dave Reynolds
On 19/02/13 19:44, Emanuel Santos wrote: I noticed using PelletReasonerFactory.THE_SPEC instead of OntModelSpec.OWL_MEM_TRANS_INF the example above gives the right answer. Any idea why this happens ? Without, as Ian said, a complete minimal example no one can tell. Your example is not

Re: DEBUG FBRuleInfGraph messages

2013-02-21 Thread Dave Reynolds
On 21/02/13 10:39, Martynas Jusevičius wrote: Hey, how can I switch off the inference rule debug messages like this one: 12:37:13,406 DEBUG FBRuleInfGraph:264 - Adding rule [ (?x http://spinrdf.org/sp#variable ?y) - (?x rdf:type http://spinrdf.org/sp#Bind) ] I'm using Jena 2.7.2. I tried

Re: testing whether an instance could be associated with a class

2013-02-22 Thread Dave Reynolds
There's no specific API for testing hypothetical assertions against an ontology. So you would need to create a model which includes (possibly by import rather than copying) - the definitions of B (and anything those depend on) - the definition of a123 and all that depends on (which

Re: testing whether an instance could be associated with a class

2013-02-22 Thread Dave Reynolds
this? Sorry, I did misread the order of the classes and individuals. Using the Jena API, you can create the class not B and ask whether a123 is a not B. If it is, then adding a123 a B would be inconsistent. Dave Reynolds' message just arrived while I was writing this, so instead of elaborating

Re: OntModel.getOntClass does not return existing classes

2013-02-25 Thread Dave Reynolds
On 25/02/13 12:03, huey...@aol.com wrote: Hi Dave, I am still having issues coming to terms with what is going on in my project. I am using this source code to get a resource by its code: AnnotationProperty codeProp = _modelOnt.getAnnotationProperty(NS_NCI_HASH + code);

Re: OntModel.getOntClass does not return existing classes

2013-02-25 Thread Dave Reynolds
of the two concepts can be retrieved as OntClass. So that's consistent and reinforces the hypothesis that there's other statements about #Neoplasm elsewhere in your data. Dave -Wolfgang -Original Message- From: Dave Reynolds dave.e.reyno...@gmail.com To: users users@jena.apache.org Sent

Re: OntModel.getOntClass does not return existing classes

2013-03-01 Thread Dave Reynolds
the mystery is why Neoplasm should have worked for you in an RDFS_MEM profile, not why the others didn't. Is there more to how OntClass determines if it can convert a resource? Not that I'm aware of but others can answer definitively. Dave -Original Message- From: Dave Reynolds

Re: fuseki

2013-03-05 Thread Dave Reynolds
On 05/03/13 12:48, Bohms, H.M. (Michel) wrote: Dear all, We want to run fuseki on a linux server. We think we need a war otherwise we need one user continuously logged in it seems. Not necessary, use the Linux command nohup to run a script that will survive logging out. Dave

Re: Owl instance testing with Jena

2013-03-05 Thread Dave Reynolds
On 05/03/13 14:11, Joshua TAYLOR wrote: On Tue, Mar 5, 2013 at 3:20 AM, Vegard Vaage vegard.va...@tv2.no wrote: I'm trying to verify instance data against an ontology using Jenas OWL reasoner. Right now I'm just trying to verify that the input literals are of the correct types and ranges, but

Re: Owl instance testing with Jena

2013-03-05 Thread Dave Reynolds
On 05/03/13 16:16, Joshua TAYLOR wrote: On Tue, Mar 5, 2013 at 10:59 AM, Dave Reynolds dave.e.reyno...@gmail.com wrote: On 05/03/13 14:11, Joshua TAYLOR wrote: On Tue, Mar 5, 2013 at 3:20 AM, Vegard Vaage vegard.va...@tv2.no wrote: I'm trying to verify instance data against an ontology

Re: Cleanly Remove Resources

2013-03-05 Thread Dave Reynolds
On 05/03/13 20:20, Mark Fischer wrote: Is there an easy way to cleanly remove resources from an Ontology? Currently, I just remove all statements that have the resource present. This works well enough but I'm worried that it will leave anonymous superclasses behind. Yes, it will. I also

Re: Modeling relationships of classes with ObjectProperty

2013-03-06 Thread Dave Reynolds
Hi Bojan, On 06/03/13 06:30, Bojan Milić wrote: What I would like to achieve is to build some kind of document library, where some documents use and create other documents. OK, so in fact it seems like you mostly want to create and query data. That's fine, that's what many people use Jena

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 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: Super/Subclass relationships in OntModel?

2013-03-19 Thread Dave Reynolds
On 19/03/13 00:35, Brian McBride wrote: 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: This spurred me to look at some of the relevant

Re: Super/Subclass relationships in OntModel?

2013-03-19 Thread Dave Reynolds
:13d8321ac37:-7ff7 NewsEvt is a superclass of TerrorAttack: false ]]] That is with jena 2.10.0 as released, i.e. without the fix to JENA-416. Dave -Original Message- From: Dave Reynolds [mailto:dave.e.reyno...@gmail.com] Sent: Tuesday, March 19, 2013 7:32 AM To: users@jena.apache.org Subject

Re: Property Domains

2013-03-19 Thread Dave Reynolds
The notion of apply to a class in OWL is not like it is in object oriented languages. For discussion on this see: http://jena.apache.org/documentation/notes/rdf-frames.html In particular see the listDeclaredProperties helper function which is mentioned therein. Dave On 19/03/13 15:07, Ed

Re: Super/Subclass relationships in OntModel?

2013-03-19 Thread Dave Reynolds
/owl:Class Dave -Original Message- From: Dave Reynolds [mailto:dave.e.reyno...@gmail.com] Sent: Tuesday, March 19, 2013 11:01 AM To: users@jena.apache.org Subject: Re: Super/Subclass relationships in OntModel? On 19/03/13 14:07, Ed Swing wrote: Unfortunately, it looks like there's still

Re: Scalability

2013-03-22 Thread Dave Reynolds
On 22/03/13 10:47, Saeed wrote: Hello, I have a question regarding Model Interface; I would appreciate if someone helps me. I’m using SDB and MySQL as tripe store in my application. The following lines are the peace of code which I use to connect to the database and make a Model and

Re: question about jena

2013-03-23 Thread Dave Reynolds
On 21/03/13 07:25, yanniyanxin wrote: Hi, I want to get the semantic similarity between two classes in ontology, then I need some parameters for semantic similarity: the depth of a class, the depth of the ontology tree, the depth of the lowest common ancestor of two classes, the number of

Re: Owl maxCardinality restriction

2013-03-24 Thread Dave Reynolds
On 24/03/13 17:27, Joshua TAYLOR wrote: On Sat, Mar 23, 2013 at 11:41 AM, Luis Eufrasio Teixeira Neto luis.eufra...@gmail.com wrote: does anybody could send me an example of an ontology having a max cardinality restriction over an objecct property and a sample jena code for readind the value of

Re: Scalability

2013-03-25 Thread Dave Reynolds
as if the data were all available but it is not loaded into memory - each access prompts a new query to underlying database. TDB, of course, being a lot faster at this than SDB. Dave - Original Message - From: Dave Reynolds dave.e.reyno...@gmail.com To: users@jena.apache.org Cc: Sent

Re: Owl maxCardinality restriction

2013-03-26 Thread Dave Reynolds
not as a form of inference. See Eyeball. Dave On Mar 24, 2013, at 3:00 PM, Dave Reynolds wrote: On 24/03/13 17:27, Joshua TAYLOR wrote: On Sat, Mar 23, 2013 at 11:41 AM, Luis Eufrasio Teixeira Neto luis.eufra...@gmail.com wrote: does anybody could send me an example of an ontology having a max

Re: RDF Model Namespaces

2013-03-28 Thread Dave Reynolds
For simply serializing RDF to/from JSON there are a number of proposed formats in common use. One of the more widely supported (and included in Jena I think) is the Talis format [1]. There is an editor's draft of that from the RDF Working Group [2] but sadly I believe that is moribund. The

Re: Question about ARQ, TDB and SDB

2013-04-03 Thread Dave Reynolds
On 02/04/13 14:52, Site Guo wrote: Hi, everyone I got a simple question as a Jena learner: What's the relationship between ARQ, TDB and SDB? Through reading the documentations, my current understanding is like this: 1. ARQ is a SPARQL query engine which parses and

Re: same code returns 2 different readers

2013-04-03 Thread Dave Reynolds
Hi Claude, On 02/04/13 23:14, Claude Warren wrote: I am running some test cases. When I run the tests (TestReaderEvent) from within Jean (2.10.1) it works fine. When I run it using the testing jar from a different project (using the same setup) it does not. Under Jena 2.10.1 The call calls

Re: Jena SDB - transform between data formats

2013-04-04 Thread Dave Reynolds
On 04/04/13 02:43, Andreas Grünwald wrote: Hello, I am new to Jena, and I am wondering, if and how it is possible to convert ontologies between different formats. At the moment, I am leveraging Protege and the OWLAPI to store concepts, properties and individuals in serialized OWL/XML files. I

Re: Jena SDB - transform between data formats

2013-04-04 Thread Dave Reynolds
On 04/04/13 14:02, Shichao Dong wrote: hi Andreas, I may have the same problem last week, and I do some research and find http://blog.sina.com.cn/s/blog_4d2d1c700100hury.html. The page is Chinese, here is my translation. Moreover, I think what Dave means is when you create ontology using

Re: Persisting OWL in Jena

2013-04-05 Thread Dave Reynolds
On 04/04/13 22:50, Andreas Grünwald wrote: Hello, I managed to establish a connection to my MYSQL database via Jena SDB and inserted some triples. However, I still feel insecure how OWL constructs are persisted with Jena. Here is my Java code example:

Re: Basic RDFS inferencing with the Jena API

2013-04-05 Thread Dave Reynolds
Hi Christian, On 04/04/13 18:23, Christian Jauvin wrote: Hi, I'm currently following the Jena API inferencing tutorial: https://jena.apache.org/documentation/inference/ and as an exercise to test my understanding, I'd like to rewrite the first example, which demonstrates a trivial RDFS

Re: Persisting OWL in Jena

2013-04-05 Thread Dave Reynolds
On 05/04/13 15:09, David Jordan wrote: Dave, I have been getting less than stellar performance in my benchmarking. I would just like to be sure that the way I am using Jena IS performing inference over in-memory models. I have stored Models in the database. When I access them and create an

Re: Persisting OWL in Jena

2013-04-06 Thread Dave Reynolds
Message- From: Dave Reynolds [mailto:dave.e.reyno...@gmail.com] Sent: Friday, April 05, 2013 10:39 AM To: users@jena.apache.org Subject: Re: Persisting OWL in Jena On 05/04/13 15:09, David Jordan wrote: Dave, I have been getting less than stellar performance in my benchmarking. I would just

Re: transaction and caching

2013-05-02 Thread Dave Reynolds
On 02/05/13 15:24, David Jordan wrote: I think I just realized why I am having the memory problems and the lengthy storage. I switched from OWL_MEM_MICRO_RULE_INFto OWL_DL_MEM_RULE_INF. That is likely going to cause a LOT more inferencing and thus a LOT more triples that will need to

Re: NullPointerException by OWLReasoner with bio schema

2013-05-12 Thread Dave Reynolds
Certainly looks like a bug. Does this work with 2.7.4? Dave On 11/05/13 15:42, jo pol wrote: Hello I get a NullPointerException with code below. I used the maven dependecy jena-arq 2.10.0. Am I overlooking something or is this a bug in jena and/or the schema? Thanks in advance Jo import

Re: Bug in SameAs

2013-05-14 Thread Dave Reynolds
We can't see your ontology and you don't list the results of your test case. However, the Jena rule reasoners are (fragments of) OWL full, not OWL DL. In OWL full then semantically you can state that two literals are sameas, you just can't directly express it syntactically in RDF. The

Re: Creating duplicate model

2013-05-16 Thread Dave Reynolds
On 16/05/13 19:36, Ed Swing wrote: While I see the difference in the code, the distinction is not at all apparent between model2 = ModelFactory.createOntologyModel(model1.getSpecification(), model1); and model2 = ModelFactory.createOntologyModel( model1.getSpecification() ) : model2.add(

Re: owl:differentfrom not flagged by owlresoner?

2013-05-23 Thread Dave Reynolds
On 22/05/13 13:25, jo pol wrote: Hello Now that the fix for the nullpointer execption is released (thanks) I'm arriving at the next hurdle: I expected the owl reasoner to complain about _:p http://purl.org/vocab/bio/0.1/mother _:p as the property is a subclass of

Re: ResIterator contains null URIs

2013-06-03 Thread Dave Reynolds
On 03/06/13 13:23, Uri Shani wrote: Issuing this statement: ResIterator iter = model.listSubjects(); for a Jena Model, and than iterating as in: while (iter.hasNext()) { String uri = iter.next().getURI(); System.out.Println(uri);

Re: Can I define a general function in jena rules?

2013-06-06 Thread Dave Reynolds
On 06/06/13 04:05, Bai Wei wrote: Hi, I want to design a mechanism using Jena rules and I need to define a general function just like in Java. I have read a paper [1], which is written in 2004, it mentioned the design of Recursive datastructures/general function symbols in rule language. My

Re: problème with identification of intersection class

2013-06-12 Thread Dave Reynolds
On 12/06/13 14:18, Fadhela Kerdjoudj wrote: Hi, I have a problem while testing if my class is an intersectionClass or not. Let assume that my class is : owl:Class rdf:about=gs;C owl:equivalentClass owl:Class owl:intersectionOf rdf:parseType=Collection

Re: updating parts of an ontology

2013-06-27 Thread Dave Reynolds
On 27/06/13 05:13, Bahador(reza)? OFOGHI wrote: Hi, I have a super ontology that includes some sub-ontologies with a subClassOf relationship between a node of the super ontology and the root of the sub-ontology in each case. My question is: if I want to update a sub-ontology, can I remove()

Re: bindSchema fails to perform inference

2013-06-27 Thread Dave Reynolds
On 27/06/13 09:12, mycircuit wrote: Hi, I am struggling to understand the usage of this idiom: reasoner = reasoner.bindSchema(schema); This creates a new reasoner which is a specialized version of the original reasoner for that ontology. This is sometimes call partial evaluation. If you

Re: bindSchema fails to perform inference

2013-06-27 Thread Dave Reynolds
Looks like a Pellet issue. If I run your code using the OWLMicro reasoner I see: All Mary related statements : - (http://localhost/boc#Mary rdf:type owl:NamedIndividual) - (http://localhost/boc#Mary rdf:type http://localhost/boc#Mother) - (http://localhost/boc#Mary rdf:type owl:Thing) -

Re: my rule doesn't fire.

2013-07-01 Thread Dave Reynolds
On 01/07/13 12:01, Nuttapon Sanyawong wrote: I've started to use Jena and tested its rule, but it doesn't work. Here is my problems I listed all of individual statement and this is some parts of my owl files

  1   2   3   4   5   6   >