Sorry for this kind of question we need a minimal reproducible
example/test case. It is really difficult to guess what's wrong. If you
suspect sp:text, then you could confirm this yourself if you just switch
your file back to RDF triples.
Holger
On 2/26/2015 20:55, Claudia Grieco wrote:
There are some rules that are applied to super classes of the
instances, but some simple rules (ex. insert height and width to an
instance of 'rectangle') shouldn't have these problems.
My rules are in sp:text, is this a problem? I'm using Spin API 1.4.0
bye
Claudia
Il giorno giovedì 26 febbraio 2015 00:57:23 UTC+1, Holger Knublauch ha
scritto:
Hi Claudia,
I need more info - which rules does your file contain? Maybe the
rules rely on rdfs:subClassOf triples? TopBraid automatically
infers some additional rdfs:subClassOf triples that may not be
present if you just load a file in a stand-alone app.
Holger
On 2/26/2015 0:08, Claudia Grieco wrote:
Hi guys,
I'm experimenting with the SPIN API and I'm encountering some
problems.
I'm using the same code from the Kennedy example, but the system
makes no inferences at all, while in Top Braid Composer Free it
generated more than 300 triples:
|
publicstaticvoidmain(String[]args){
// Initialize system functions and templates
SPINModuleRegistry.get().init();
// Load main file
ModelbaseModel =ModelFactory.createDefaultModel();
Stringfolder="C:\\myfolder\\";
baseModel.read(Paths.get(folder,"ontology.rdf").toUri().toString());//load
ontology
baseModel.read(Paths.get(folder,"rules.rdf").toUri().toString());//load
spin rules created with topbraid composer
baseModel.read(Paths.get(folder,"data.rdf").toUri().toString());//load
ontology instances on which to execute inferences
// Create OntModel with imports
OntModelontModel
=JenaUtil.createOntologyModel(OntModelSpec.OWL_MEM,baseModel);
// Create and add Model for inferred triples
ModelnewTriples =ModelFactory.createDefaultModel();
ontModel.addSubModel(newTriples);
// Register locally defined functions
SPINModuleRegistry.get().registerAll(ontModel,null);
// Run all inferences
SPINInferences.run(ontModel,newTriples,null,null,false,null);
System.out.println("Inferred triples:
"+newTriples.size());//prints zero inferred triples
}
|
--
You received this message because you are subscribed to the
Google Group "TopBraid Suite Users", the topics of which include
Enterprise Vocabulary Network (EVN), Reference Data Manager
(RDM), TopBraid Composer, TopBraid Live, TopBraid Insight,
SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to topbrai...@googlegroups.com
<javascript:>
---
You received this message because you are subscribed to the
Google Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to topbraid-user...@googlegroups.com <javascript:>.
For more options, visit https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.
--
You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include Enterprise
Vocabulary Network (EVN), Reference Data Manager (RDM), TopBraid
Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL Web
Pages and SPIN.
To post to this group, send email to topbraid-users@googlegroups.com
---
You received this message because you are subscribed to the Google
Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to topbraid-users+unsubscr...@googlegroups.com
<mailto:topbraid-users+unsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Group "TopBraid
Suite Users", the topics of which include Enterprise Vocabulary Network (EVN),
Reference Data Manager (RDM), TopBraid Composer, TopBraid Live, TopBraid Insight,
SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to topbraid-users@googlegroups.com
---
You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to topbraid-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.