Am 24.06.2011 um 22:08 schrieb Mauro Bieg:

> Am 24.06.2011 um 18:19 schrieb Dave Reynolds:
> 
>> On Fri, 2011-06-24 at 17:58 +0200, Mauro Bieg wrote:
>> 
>>> i guess i need owl reasoning (as i want to infer from an owl:unionOf). 
>>> would you know whether Pellet or the OWLMicroFBRuleReasoner is faster?
>> 
>> It depends. 
>> 
>> For complex ontologies then Pellet is generally faster, as well as being
>> complete.
>> 
>> For simple cases OWLMicro can be faster.
>> 
>> Try it, I'd be interested to hear how they compare on your data.
>> 
>>> p.s. i haven't written any java code for this and might not have to. 
>>> currently i'm just using the assembler posted above to start up fuseki 
>>> (with --desc=./assembler.ttl) and query/update the rdf-store with sparql 
>>> over http.
>>> so it might be a good idea to post that list (maybe along with my 
>>> assembler) to http://openjena.org/wiki/Fuseki so that other people don't 
>>> have to do the same search as i did. so far fuseki has served me great, 
>>> just adding the reasoner was nowhere really documented.
>> 
>> Yes, the list of Reasoner URIs should certainly be posted somewhere,
>> possibly as part of the assembler documentation. I'll log that on Jira
>> since the web documentation is all in transition right now.
>> 
>> Dave
> 
> 
> okay, i'm trying to get fuseki to run with pellet now.. i have the following 
> pellet.ttl assembler file now:
> 
> @prefix rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
> @prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
> @prefix ja:      <http://jena.hpl.hp.com/2005/11/Assembler#> .
> <#dataset> rdf:type ja:RDFDataset ;
>       ja:defaultGraph <#inf_graph> ;
>       .
> <#inf_graph> rdf:type ja:InfModel ;
>       ja:reasoner [ja:reasonerClass
>               "org.mindswap.pellet.jena.PelletReasonerFactory" ;
>       ] ;
>       ja:baseModel <#baseGraph>
>       .
> <#baseGraph> a ja:MemoryModel ;
>       ja:content [ja:externalContent 
> <file:///Users/maurobieg/semCMS/code/Fuseki-0.2.1-SNAPSHOT/sample.ttl>] 
>       .

actually, after some more fiddling i figured it out myself. what works for me 
is the following bash script to start fuseki with ALL pellet-jars in the 
classpath:

#!/bin/sh
PELLETLIBDIR="/opt/pellet-2.2.2/lib" 
for jar in "$PELLETLIBDIR"/*.jar
do
        THE_CLASSPATH=${THE_CLASSPATH}:${jar}
done
java -cp "./fuseki-sys.jar:${THE_CLASSPATH}" org.openjena.fuseki.FusekiCmd 
--update --desc=./pellet.ttl /dataset

make the script executable and run it from inside the fuseki dir. may not be a 
nice approach but works.

@Dave, i currently have only the following ontologies in my datastore:
rdf:
rdfs:
<http://xmlns.com/foaf/0.1/>
<http://www.w3.org/2003/06/sw-vocab-status/ns#>
<http://www.w3.org/2002/07/owl#>
<http://purl.org/dc/elements/1.1/>
<http://www.w3.org/2002/12/cal#>

and pellet is definitely faster than OWLMicroFBRuleReasoner. but what's 
bothering me now is that pellet says everything is a owl:Thing but not infers 
that it's also an rdf:Resource... i'll see..

best,
mauro

Reply via email to