... InfModels inherit from Model and Model provides various .contains operations. See the javadoc for Model, specifically .containsResource Efficiency will...
... Just add with an rdf:type property, linking the instance to the type. By the way, the OntModel class provides a much cleaner API for thinking about your...
Assume that class A has property B, and an instance of A has many instances of property B. How can I list out all the values of instances of property B...
Can you give me a simple program codes showing that how to know that the infModel has changed by internal reasoner. I know that we can attach a listener to the...
I have the following warning message after running the program: WARN <Rule.java:922> - Rule references unimplemented functor: minus WARN <Rule.java:922> - Rule...
... The rule syntax is given (albeit informally) at: http://jena.sourceforge.net/inference/index.html#RULEsyntax ... Not quite sure what you mean by...
... If by "do something" you mean "infer something different from that which was infered before the change" and if your changes include deductions then there...
... So you want all things that are instances of A: (?x rdf:type A) and then you want to find the values they have for property B: (?x B ?y) You can implement...
If I want to set a property in an infModel, I use infModel.add(s, p, o) is it right? What about if I want to add a new instance s with property p with value o?...
... Er, to get the property domain of a property in the ontology API. Specifically, if you have: <owl:Property rdf:ID="foo"> <owl:domain rdf:resource="#Bar" />...
... I am studying OWL and use Jena as a helper to try things. The question reworded is that since in general any property can have more than one domain because...
... Same add(s,p,o) adds a statement to the model. As noted before, resources do not exist in models unless there is some statement involving them (including...
... Jena's statements are immutable, so you can't change them. The solution is to delete the old statement and replace it with a new statement with same...
... Wow, given the expressiveness of OWL, and the decoupling of properties and classes by design in both standards, looks like forced and fragile to use them...
... Please read the Javadoc for OntProperty, your question is quite straightforwardly answered there. In general, it is polite to do at least some work to...
Hi, Some URIs seem not to be available (tutorial – Jena 2 Ontology API), as: - http://www.xfront.com/owl/ontologies/camera/camera.owl -...
Oscar Pereira
oscar@...
Jan 2, 2006 5:17 pm
20083
You could try to see if the second google match http://protege.stanford.edu/plugins/owl/owl-library/camera.owl is the same version as requested by the...
Hi, ... The month argument of Calendar.set(year, month, date) is 0-based, e.g. 0 for January. Don't ask me why. So the output is correct. ... Same thing....
... Java calendar uses a 0-based month (Jan = 0) XSD dateTime uses a 1-based month (Jan = 1) So c.set(..10..) is November. Which is 11 to dateTime. So this...
... From what I've seen so far, that follows from the OWL rule[*]: {?P @has rdfs:domain ?C. ?C @has rdfs:subClassOf ?D} => {?P rdfs:domain ?D}. BTW, it is...