What might cause
myOntology.writeAll(outStream, "RDF/XML");
(where myOntology is an OntModel) to get a stack overflow
java.lang.StackOverflowError
at java.util.regex.Pattern$GroupHead.match(Unknown Source)
at java.util.regex.Pattern$BmpCharProperty.match(Unknown Source)
64m, enough to hold the entire model several times over.
On 10/5/2017 8:32 PM, David Jordan wrote:
> Recursion.
>
> Try increasing the stack size of your JVM when you run it.
>
>
> On Thu, Oct 5, 2017 at 9:18 PM, Steve Vestal <steve.ves...@adventiumlabs.com
>>
This appears to have been a misunderstanding of what the deductions
model contains. A dump of the full model includes the expected inferred
transitive relations.
What does the deductions model contain, relative to the input ontology
and the inferred sentences?
On 9/24/2017 9:35 AM, Steve
I have a few questions about reasoning in Jena. Thanks in advance for
any answers or suggestions.
As background, here is a simple test case to infer transitive
relations between individuals. Protege/Pellet will load this model
and infer that A transProp C.
http://www.test.com/test#;
When I execute the following org.apache.jena.rdf.model.Model method
ReifiedStatement myReifiedStatement =
myOntology.createReifiedStatement(myNodeName, myStatement);
where myStatement is an org.apache.jena.rdf.model.Statement in a Model
returned by an org.apache.jena.query.Query#execConstruct
to?
On 9/30/2017 11:52 AM, Dave Reynolds wrote:
> On 30/09/17 16:31, Steve Vestal wrote:
>> When I execute the following org.apache.jena.rdf.model.Model method
>>
>> ReifiedStatement myReifiedStatement =
>> myOntology.createReifiedStatement(myNodeName, myStatemen
=
myOntology.createReifiedStatement(myNodeURI, s);
and got the same exception from
org.apache.jena.graph.Node.getBlankNodeId(Node.java:86)
On 9/30/2017 11:52 AM, Dave Reynolds wrote:
> On 30/09/17 16:31, Steve Vestal wrote:
>> When I execute the following org.apache.jena.rdf.model.Mod
FYI
Forwarded Message
Subject:Re: What might cause a writeAll stack overflow?
Date: Thu, 12 Oct 2017 16:24:26 +0100
From: Andy Seaborne <a...@apache.org>
To: Steve Vestal <steve.ves...@adventiumlabs.com>, Dave Reynolds
<dave.e.reyno...@gmai
The download page says the distribution includes the API, but I cannot
find a javadoc folder in the jars. Is there some way to get this short
of standing up a source build myself?
(I'm putting the jars in an Eclipse plugin so Jena is conveniently
available to multiple other plugins, and it is
I am able to pull the release jars following the instructions on the
Jena web pages, using
org.apache.jena
apache-jena-libs
pom
3.12.0
However, this is not sufficient to turn on JavaDoc tooltips in the
Eclipse IDE (I'm pulling these
-dependencies into the plugin itself.
I suspect apache-jena-osgi might be the proper way to go eventually, but
for now I can manually set links for the APIs I'm using.
On 8/31/2019 3:44 PM, Andy Seaborne wrote:
>
>
> On 31/08/2019 15:23, Steve Vestal wrote:
>> I am able to pull t
reasoners? Or is this just asking for trouble?
(Calling them OntModels without reasoners captures the intent better.)
On 10/23/2019 2:42 AM, Dave Reynolds wrote:
> On 23/10/2019 03:16, Steve Vestal wrote:
>> The description at https://jena.apache.org/documentation/ontology/ talks
>>
The description at https://jena.apache.org/documentation/ontology/ talks
about reading an ontology in as the base graph. Import closure puts
each imported ontology into its own graph to produce a "compound
document." What happens if I read more than one ontology into the same
OntModel? Are they
If I had three OntModels, each with their own OntDocumentManager,
FileManager, and choice of reasoner,
OntModel ontoA
OntModel ontoB
OntModel ontoCommon
and I then do the following
ontoA.addSubModel(ontoCommon)
ontoB.addSubModel(ontoCommon)
how is
Never mind, I think using OntDocumentManager#addModel(docURI, model)
together with other import machinery does what I wanted.
On 12/6/2019 7:56 AM, Steve Vestal wrote:
> Thanks, Dave. Here are a few more questions.
>
> I'm looking at
> https://jena.apache.org/documentation/ontolo
capable of delivering the results but doesn't actually
>> evaluate the query and produce any results until you call
>> hasNext()/next(). When you call either of these methods then ARQ
>> does the minimum amount of work to return the next result (or batch
>> of results) depending
I'm currently using 3.8.0 jars.
On 2/25/2020 11:30 AM, Andy Seaborne wrote:
>
>
> On 25/02/2020 16:25, Steve Vestal wrote:
>> I read that chapter in DuCharme's book and have some things to try, such
>> as moving the rdf:type triples around and fragmenting that single
ain for everyone's help.
On 2/25/2020 12:33 PM, Andy Seaborne wrote:
> Current is 3.14.0.
>
> On 25/02/2020 17:38, Steve Vestal wrote:
>> I'm currently using 3.8.0 jars.
>>
>> On 2/25/2020 11:30 AM, Andy Seaborne wrote:
>>>
>>>
>>> On 25/02/2020
I am using the results of one SPARQL query against an OntModel to
construct follow-on SPARQL queries. The OntModel contains blank nodes
to denote some classes and individuals. QueryResult gives me RDFNodes,
and I am using methods such as RDFNode#as(Class) to obtain more
specific classifications
ILTER(!sameTerm(?rightA,?connectionBB) &&
!sameTerm(?rightB,?connectionBB) && !sameTerm(?leftB,?connectionBB) &&
!sameTerm(?leftA,?connectionBB) &&
!sameTerm(?connectionBA,?connectionBB) &&
!sameTerm(?connectionAA,?connectionBB) &&
!sameTerm(?connectionAB,?con
Responses and questions inserted...
On 2/24/2020 3:02 AM, Dave Reynolds wrote:
> On 23/02/2020 23:11, Steve Vestal wrote:
>> If I comment out the FILTER clause that prevents variable aliasing, the
>> query is processed almost immediately. The number of rows goes from 192
>>
I correct myself, a stupid rather than a beginner's question.
On 2/3/2020 10:29 AM, Martynas Jusevičius wrote:
> Use
>
> while (selectResult.hasNext())
>
> instead?
>
> On Mon, Feb 3, 2020 at 5:25 PM Steve Vestal
> wrote:
>> A beginner's question. I
A beginner's question. I would like to iterate over all the solutions
from a select query. If I execute
QueryExecution qexec =
QueryExecutionFactory.create(mySelectQuery, myModel);
ResultSet selectResult = qexec.execSelect();
String results =
leHardware
&& ?leftB!=?rightA && ?leftB!=?rightB && ?leftB!=?singleHardware
&& ?rightA!=?rightB && ?rightA!=?singleHardware
&& ?rightB!=?singleHardware)
}
On 2/23/2020 1:54 PM, Marco Neumann wrote:
> a copy o
I'm looking for suggestions on a SPARQL performance issue. My test
model has ~800 sentences, and processing of one select query takes about
25 minutes. The query is a basic graph pattern with 9 variables and 20
triples, plus a filter that forces distinct variables to have distinct
solutions
isn't available via Ontology API.
>>
>>
>> [1]
>> https://github.com/apache/jena/blob/master/jena-core/src/main/java/org/apache/jena/ontology/impl/OWLProfile.java#L166-L172
>>
>>
>> [2]
>> https://jena.apache.org/documentation/ontology/#
I have some owl:Ontology documents from different sources. One uses
rdfs:Class and the other owl:Class. When I glance at the standards, it
says these are equivalent in OWL Full but not in OWL DL. There is a
discussion about this in the section "Ontology languages and the Jena
Ontology API" in
OWL.Thing is a Resource. The OWL standard says "Declaration( Class(
owl:Thing ) ) " is a declaration of this built-in entity, but a class
cast (OntClass) OWL.Thing fails. The following also fails.
Resource owlThing = OWL.Thing;
OntClass classThing = owlThing.as(OntClass.class);
Is there a way
ntModel m = ...
> OntClass owlThing = m.createClass(OWL.Thing.getURI());
>
> or
>
> OntClass owlThing = (OntClass) m.createOntResource( OntClass.class,
> null, OWL.Thing.getURI());
>
> On 29.04.20 01:30, Steve Vestal wrote:
>> OWL.Thing is a Resource. The OWL standard
DuCharme's book says that the order of OPTIONALs matters, in the sense
that if bindings have been done by an OPTIONAL, then later OPTIONALs
will have no effect if any variables they might bind have already been
bound (so order of OPTIONALs can affect query results).
What prompted this query (no
a row?
On 5/13/2020 3:44 AM, Richard Cyganiak wrote:
> Hi Steve,
>
>> On 12 May 2020, at 22:19, Steve Vestal
>> wrote:
>>
>> DuCharme's book says that the order of OPTIONALs matters, in the sense
>> that if bindings have been done by an OPTIONAL, then later OPT
I would like to make an external non-RDF data source visible as an
OntModel (read-only for me). The page
https://jena.apache.org/documentation/rdf/ mentions doing such things,
but I haven't found anything more specific about how to do it. The RDF
tutorial mentions that the Model method
I'm curious if there is an elegant, Jena-style way to do the following
(which can be done pragmatically in many ways).
I'd like to have a single object that can be any of a literal, a
variable, or a resource in a specific model.
RDFNode can be either a literal or a resource in a specific model.
essentially the same?
Which is preferred from a scalability perspective, TDB or TDB2? I expect
to primarily be doing queries, with few if any updates.
On 12/5/2020 1:06 PM, Andy Seaborne wrote:
Hi Steve,
On 04/12/2020 16:09, Steve Vestal wrote:
I'm wondering how to best issue SPARQL queries
A search turns up several pages on using Pellet with Jena, some
appearing fairly out-of-date. What is the current recommended
approach? https://github.com/Galigator/openllet?
Also, eventually I will want to try this on a model backed by a TDB2
data set. Is the performance reasonable even for
OK
On 12/24/2020 11:59 AM, Andy Seaborne wrote:
Steve - could you send this to the list please? More OntModel experts
there!
Andy
On 24/12/2020 17:18, Steve Vestal wrote:
What I did as part of exploring things was
Model baseModel =
ModelFactory.createModelForGraph
I am doing my own import closure, and I saw some behaviors that I was a
bit curious about. For my own education, I'd appreciate any
observations you might have.
I call setProcessImports(false) when creating the document manager, but
1) my OntModel gets created as a UnionModel, and 2) a query
I am getting an exception that a Resource cannot convert to an
Individual in a list of Individuals, even when I'm iterating over it as
a list of Resources.
Here is the code, where ontModel is an OntModel and resourceClass is an
OntClass.
ExtendedIterator resourceIterator =
Jusevičius wrote:
What are the properties of
http://adventiumlabs.com/ontology/fhowl/structuresintwoclasses#memBusEquiv_si8
?
On Sun, 20 Dec 2020 at 19.11, Steve Vestal
wrote:
I am getting an exception that a Resource cannot convert to an
Individual in a list of Individuals, even when I'm iterating over
When I create an OntModel using OntModelSpec.OWL_DL_MEM_RULE_INF,
InfGraph#getDerivation returns a derivation. When I switch to
PelletReasonerFactory.THE_SPEC (the only choice), I get a null result.
I have tried setDerivationLogging(true) on both the Reasoner and the
InfGraph.
= ((PelletInfGraph)g).entails(t);
On 27.12.20 15:13, Steve Vestal wrote:
When I create an OntModel using OntModelSpec.OWL_DL_MEM_RULE_INF,
InfGraph#getDerivation returns a derivation. When I switch to
PelletReasonerFactory.THE_SPEC (the only choice), I get a null
result. I have tried setDerivationLogging
Support for JAXB was removed from Java11. For those using that and Jena
in osgi bundles (e.g., Eclipse plugins), my impression from some initial
experimenting and searching is that a bit of wizardry is needed to add
that on the side and get it working. I could not find a clean and
simple
The issue has something to do with class loading the context, which
apparently is done differently in an osgi bundle. See, e.g.,
http://www.descher.at/descher-vu/2019/01/java-11-jaxb-and-osgi/
On 1/6/2021 7:11 AM, Andy Seaborne wrote:
On 05/01/2021 22:46, Steve Vestal wrote:
Support
dependent. Is that your code or some other
dependency?
Andy
On 06/01/2021 13:25, Steve Vestal wrote:
The issue has something to do with class loading the context, which
apparently is done differently in an osgi bundle. See, e.g.,
http://www.descher.at/descher-vu/2019/01/java-11-jaxb-and-osgi
I'm going to generalize this request a bit. I earlier reported
restructuring a query to get from 25 minutes to 90 ms, where I found the
"Learning SPARQL" book to be helpful. Do you know of any more detailed
tutorial or guidelines focusing on performance issues, something that
goes into a bit
I'm starting to use OWL 2 punning some. The OWL 2 New Features standard
doesn't say a whole lot. I would appreciate a recommendation if anyone
knows a good tutorial on punning (in either the domain of OWL or humor,
bonus points for jokes that meta-pun the two domains). Here is my
initial
:
On 21/06/2021 18:46, Steve Vestal wrote:
I am trying to understand, for an OntModel, the differences between
the base model, an imported model, a sub-model, and a bound schema.
My use case is that I have a number of "imports" (actually sub-models
I add myself) to an OntModel, on
I am trying to understand, for an OntModel, the differences between the
base model, an imported model, a sub-model, and a bound schema. My use
case is that I have a number of "imports" (actually sub-models I add
myself) to an OntModel, one of which might have its content changed
during use.
PubChemRDF, OSLC, and probably others define their own light-weight
query protocol, conceptually similar to the Jena Graph interface. I was
curious if there exists, or there are moves afoot to propose, a standard
"SPARQL lite" or BGP query protocol, closer to the Jena Graph or
StageGenerator
:36 PM, Andy Seaborne wrote:
On Tue, May 18, 2021 at 3:59 PM Steve Vestal
wrote:
PubChemRDF, OSLC, and probably others define their own light-weight
query protocol, conceptually similar to the Jena Graph interface. I
was
curious if there exists, or there are moves afoot to propose
I asked about this topic awhile ago and received some very helpful
pointers from this forum (thanks again!). Here is the list I collected
during some explorations:
http://www.lotico.com/index.php/SPARQL_Query_Optimization_with_Pavel_Klinov
Andy pointed at sequential OPTIONALs. One example I have seen had
nested OPTIONAL clauses to address a performance issue. Might that be
helpful here?
On 5/20/2021 5:43 AM, Andy Seaborne wrote:
On 20/05/2021 09:36, Martin Van Aken wrote:
Andy,
A big thanks for this - it gives me some
it is the ARQ API that has
optimization configuration options.Some initial experiments with a
couple of ARQ Context settings resulted in little impact on a test
query issued to a series of increasingly larger in-memory
models.When/where are indexes created and used?
Thanks for any insight.
On 3/18/
One more question. What is the default interface used to query an
InfModel? Is a tailored StageGenerator used or a straight-up Graph or
InfGraph interface?
On 4/5/2021 11:39 AM, Steve Vestal wrote:
Thanks. Are the following impressions sort of correct?
If I have a moderately sizeable RDF
options.Some initial experiments with a
couple of ARQ Context settings resulted in little impact on a test query
issued to a series of increasingly larger in-memory models.When/where
are indexes created and used?
Thanks for any insight.
On 3/18/2021 9:45 AM, Steve Vestal wrote:
Thanks. I'm looking
that already, generating and post-processing queries are steps in
the overall algorithm.)
On 3/18/2021 9:19 AM, Andy Seaborne wrote:
On 17/03/2021 22:45, Steve Vestal wrote:
I'd like to dig a bit deeper into SPARQL query performance, better
understand how different query formulations affect that, how
t it
also goes into more depth around some of the core low level implementation
details of SPARQL engines e.g. join types
Rob
On 18/03/2021, 14:20, "Andy Seaborne" wrote:
On 17/03/2021 22:45, Steve Vestal wrote:
> I'd like to dig a bit deeper into S
the need for query authors to frame their queries appropriately but it also
goes into more depth around some of the core low level implementation details
of SPARQL engines e.g. join types
Rob
On 18/03/2021, 14:20, "Andy Seaborne" wrote:
On 17/03/2021 22:45, Steve Vestal wr
I'd like to dig a bit deeper into SPARQL query performance, better
understand how different query formulations affect that, how ARQ
configuration parameters might be used to tune that. Can anyone
recommend a place to start reading beyond the SPARQL book and language
definition?
It occurred to me, I am issuing the queries to an OntModel that is using
openllet. Perhaps the reasoner is doing some start-up work.
On 4/10/2021 10:47 AM, Steve Vestal wrote:
When doing some bench-marking, I ran the same query twice
back-to-back. The first time took about 4000ms, the second
When doing some bench-marking, I ran the same query twice back-to-back.
The first time took about 4000ms, the second about 700ms. The
difference remained with optimizations on or off. This seems to happen
only on the first query, successive pairs of identical queries don't
show this effect.
I am reading a file using the following:
myModel.read(myInputStream, "JSON-LD");
I get an exception:
org.apache.jena.riot.RiotException: [line: 1, col: 1 ] Content is not
allowed in prolog.
at
Thanks, progress is made. I am new to JSON-LD. I get the following
error. Why does it need to load something using one of the IRIs found
in the *.jsonld file? Is this like an import that I can turn off?
org.apache.jena.riot.RiotException: loading remote context failed:
I am getting the following exception in a large file, XML/RDF format.
Is there a way to find out line and column? A way to configure Jena
Riot so it will let me be unwise (not preferred, but it has happened).
org.apache.jena.riot.RiotException:
Code: 4/UNWISE_CHARACTER
in PATH: The
I am creating an OntClass but also want to pun that IRI, so that I have
an Individual with that same IRI that can be a member of a class. Here
is an example of doing that in OFN (a class that contains itself, sort
of but not really as I understand it), which works in Protege.
an exception, maybe it's the base URI passed to the parser
and not in the data itself.
Andy
On 25/09/2021 11:40, Steve Vestal wrote:
I am getting the following exception in a large file, XML/RDF format.
Is there a way to find out line and column? A way to configure Jena
Riot so it will let
There is a method OntClass#listEquivalentClasses that returns an
extended iterator. There is no corresponding method for an Individual,
e.g. no Individual#listEquivalentIndividuals. There is a method
OntResource#listSameAs.
In a test (Jena 3.17), classes that had been declared equivalent
I omitted a detail that seems to be important.
//OntModel m = ModelFactory.createOntologyModel();
OntModel m =
ModelFactory.createOntologyModel(OntModelSpec.OWL_DL_MEM);
String uri = "http://ex.org/A;;
or class).”
https://www.w3.org/TR/owl-guide/
On Sun, 24 Oct 2021 at 13.43, Steve Vestal
wrote:
I omitted a detail that seems to be important.
//OntModel m =
ModelFactory.createOntologyModel();
OntModel m =
ModelFactory.createOntologyModel
=
OntModelSpec.OWL_MEM_MICRO_RULE_INF;
//public static final OntModelSpec INFERENCE_RULES =
OntModelSpec.OWL_MEM_MINI_RULE_INF;
//public static final OntModelSpec INFERENCE_RULES =
OntModelSpec.OWL_LITE_MEM;
On 10/24/2021 1:28 PM, Dave Reynolds wrote:
On 24/10/2021 12:42, Steve Vestal wrote:
I omitted
h what they are doing with the old setup
while new requests get the new view. Teh garbage collector wil reclaim
space sometime after all the outstanding old operatiosn have finished.
Andy
On 28/10/2021 13:26, Steve Vestal wrote:
Does anyone have any suggestions on things to try to
Does anyone have any suggestions on things to try to avoid a
ConcurrentModificationException when using
OWLReasoner.OWL_MEM_MICRO_RULE_INF? Or what the potential consequences
of that are? (The below stack dump only goes back to where my code made
the call, the full one is fairly lengthy and
Oops, my mistake, I left it hard-coded rather than parameterizing it
correctly. This does work for me.
On 10/25/2021 2:14 AM, Dave Reynolds wrote:
On 24/10/2021 20:33, Steve Vestal wrote:
I tried the following. All get a ConversionException.
//public static final OntModelSpec
WL 1 language specification. It does raise the question of
whether the createOntologyModel result (that avoids the exception) would
be fully sufficient for openllet reasoning.
On 10/25/2021 2:14 AM, Dave Reynolds wrote:
On 24/10/2021 20:33, Steve Vestal wrote:
I tried the following. All get a Conversio
PM, Dave Reynolds wrote:
On 01/11/2021 17:18, Steve Vestal wrote:
Thanks, this started me down the path to a solution.
For the record, I searched through my code, and I could not find
multiple threads accessing the model. This was occurring during a
SPARQL query of an OntModel. Is it possible
Look at https://jena.apache.org/documentation/inference/, the parts that
talk about base and ontology/schema models. This might do what you want.
On 11/4/2021 4:34 AM, Luis Enrique Ramos García wrote:
Dear All,
I found this information regarding the use of the so called ABox and TBox
with a
Which reasoner are you using? Have you tried openllet (Pellet for Jena)
to see if you get the desired result?
Out of curiosity, what notation (ontology syntax) are you using here?
On 12/5/2021 8:38 AM, Jakub Jałowiec wrote:
Hi,
I have an OWL ontology
I have done this manually using Protege (convert ofn to RDF/XML). You
could also look at https://github.com/owlcs/owlapi/
On 4/4/2022 8:53 AM, Mikael Pesonen wrote:
Is it possible to send OWL in functional syntax to Jena? Fuseki says
Unknown content type for triples: [text/owl-functional]
via the owlapi reasoner interface.
On 4/5/2022 4:52 AM, Mikael Pesonen wrote:
Owlapi will work, thanks!
On 04/04/2022 18.17, Steve Vestal wrote:
I have done this manually using Protege (convert ofn to RDF/XML). You
could also look at https://github.com/owlcs/owlapi/
On 4/4/2022 8:53 AM
Never mind, the doc simply high-lighted the class as a URL. Simple XSD
is enough for now.
On 10/24/2023 12:16 PM, Steve Vestal wrote:
https://jena.apache.org/documentation/notes/typed-literals.html#xsd
says "These are all available as static member variables
What is the best way to reconstruct a typed Literal from a SPARQL SELECT
result?
I have a SPARQL SELECT query issued against an OntModel in this way:
QueryExecution structureRowsExec =
QueryExecutionFactory.create(structureRowsQuery, owlOntModel);
Here are some example triples in the
If I reconstruct using
Literal dataLiteral = resultGraph.createLiteral(objectDataValue);
it always says the type is string
1^^xsd:string
stringB^^ xsd:string
123.456^^xsd:string
2023-10-06T12:05:10Z^^xsd:string
On 10/26/2023 4:17 AM, Steve Vestal wrote:
What is the best
ote:
You need Model::createTypedLiteral
https://jena.apache.org/documentation/notes/typed-literals.html#basic-api-operations
On Thu, 26 Oct 2023 at 12.24, Steve Vestal wrote:
If I reconstruct using
Literal dataLiteral = resultGraph.createLiteral(objectDataValue);
it always says the typ
A toString() buried down in the code was it. Simple to add the
datatypeURI. Thanks!
On 10/26/2023 7:48 AM, Andy Seaborne wrote:
On 26/10/2023 10:17, Steve Vestal wrote:
What is the best way to reconstruct a typed Literal from a SPARQL
SELECT result?
I have a SPARQL SELECT query issued
I couldn't resist trying https://purl.obolibrary.org/obo/foodon.owl as a
stress test for what we are doing. We're on Jena 4.5.0 and I'm getting
Not in RDF/XML format due to exception
org.apache.jena.riot.RiotException [line: 110334, col: 72] Invalid byte
2 of 2-byte UTF-8 sequence.
Could
Is there a factory to create an RDFDatatype using a URL, e.g.,
http://www.w3.org/2001/XMLSchema#integer ?
The closest I have found so far is javax.xml.datatype.DatatypeFactory,
but that only supports a specific list.
;
but that link is Not Found.
On 10/24/2023 11:38 AM, Steve Vestal wrote:
Is there a factory to create an RDFDatatype using a URL, e.g.,
http://www.w3.org/2001/XMLSchema#integer ?
The closest I have found so far is javax.xml.datatype.DatatypeFactory,
but that only supports a specific list.
In some places I use e.g. (resource instanceof Individual) , but in
others it seems I need resource.canAs(Individual.class). If you have
brief guidelines on when to use what, I would appreciate that. A
specific case is punning in an OntModel. Is that a case where
canAs(Individual.class) and
The download page says Jena requires Java 11. Openllet for Jena 2.6
also just says Java 11 required. Does that mean Java 11 or greater? Is
anyone using the latest Jena and Openllet with Java 17? The Eclipse
installer defaults to Java 14 for 2022-03, with higher versions
available. Any
I have a few questions about how to assemble a compound document
structure. I will use as a notional example
OntModel ontModel =
ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM_MICRO_RULE_INF);
The reasoner package javadoc shows
ReasonerFactory rf =
it doesn't save the model, but getSubGraph will return
that original graph. It appears getImportModel will also sometimes
create a new OntModel object/wrapper. I'm starting to get the feeling
wrapping models and graphs is not uncommon inside compound document
structures.
On 7/12/2022 3:25
If you install a recent version of Eclipse using Oomph (the default way
now), it should give you an option to select a version of OpenJDK. I
think it puts it in the .p2 repository. You may have to adjust some
preferences and properties (I am not a Maven maven), but you can bypass
the Oracle
I make a call model.remove(statement) for a statement that is listed in
that model, but that statement stays listed.
The following example code is a bit lengthy due to setup and
alternatives tried, but it is executable (with Jena imports added). I
think this is a simple misunderstanding of
The general query containment and equivalence problem is undecidable.
There is some work on doing this when restrictions are placed on the
queries. Here is one paper on the subject:
https://hal.inria.fr/file/index/docid/691610/filename/RR-7942.pdf
On 9/8/2022 3:54 AM, Rushikesh Halle wrote:
r the root class only.
Cheers,
Lorenz
On 29.12.22 15:31, Steve Vestal wrote:
Below is an example from
https://jena.apache.org/documentation/notes/rdf-frames.html
(rewritten in ofn due to minor syntax error in example and my greater
familiarity with ofn), with one minor addition. I declared an object
I am using Individual#listProperties (inherited Resource#listProperties)
to get the property instances (triples) for Individuals in an OntModel.
This method returns an iterator of Statements. The statement objects
are returned as ResourceImpl java objects, and the predicates are
returned as
Given an OntModel myModel and an OntClass myClass contained in myModel,
the call myModel.listIndividuals(myClass) provides the expected list of
Individuals that are members of myClass; but the call
myClass.listInstances() doesn't list anything. I am curious what the
difference is between the
think this is not what you want, but I can't think of why you
would need this?
Cheers,
Lorenz
On 31.12.22 17:45, Steve Vestal wrote:
I am using Individual#listProperties (inherited
Resource#listProperties) to get the property instances (triples) for
Individuals in an OntModel. This method returns an it
direct ))
.filterKeep( new UniqueFilter());
On 31.12.22 21:07, Steve Vestal wrote:
Given an OntModel myModel and an OntClass myClass contained in
myModel, the call myModel.listIndividuals(myClass) provides the
expected list of Individuals that are members of myClass; but the
call myClass.listIns
Below is an example from
https://jena.apache.org/documentation/notes/rdf-frames.html (rewritten
in ofn due to minor syntax error in example and my greater familiarity
with ofn), with one minor addition. I declared an object property that
is not used anywhere else.
1 - 100 of 111 matches
Mail list logo