Skip to topic | Skip to bottom
Home

Tesi
Tesi.AppuntiTestPrestazionir1.1 - 29 Jan 2011 - 17:43 - FrancescoPoggitopic end

Start of topic | Skip to actions
-- FrancescoPoggi - 29 Jan 2011

Struttura FRETTA

Ritorna al diario di bordo.

Appunti

Framework, librerie, ragionatori in Java:

  • HermiT un ragionatore per ontologie scritte in OWL (vedi la pagina ufficiale). Hermit supporta l'interfaccia OWLReasoner delle OWL API e fornisce nativamente supporto per lavorare con oggetti come ontologie e cassi delle OWL API.

  • OWL API una Java API e un'implementazione di riferimenti per creare, modificare e serializzare ontologie OWL (vedi la pagina ufficiale). L'ultima versione fa riferimento a OWL 2. Attraverso l'interfaccia OWLReasoner possibile lavorare con ragionatori come FaCT++, HermiT, Pellet e Racer.

    OWLAPI non fornisce supporto nativo per effettuare query SPARQL. Tuttavia possibile procedere come riportato in eseguito (vedi qui).

    There is no native SPARQL support in OWLAPI. However, a Jena model can be created with the contents of an OWLAPI reasoner so SPARQL query answering can be done on the Jena model. OWLAPI reasoner and Jena model can be queried together but all updates should be done on the OWLAPI ontology. The following snippet shows the general idea behind this approach:
         // import com.clarkparsia.pellet.owlapiv3.PelletReasoner;
         // import com.clarkparsia.pellet.owlapiv3.PelletReasonerFactory;

         // Create OWLAPI ontology as usual
         OWLOntology ontology = ...
         // Create Pellet-OWLAPI reasoner (non-buffering mode makes synchronization easier)
         PelletReasoner reasoner = 
               PelletReasonerFactory.getInstance().createNonBufferingReasoner( ontology );
         // Get the KB from the reasoner
         KnowledgeBase kb = reasoner.getKB();
         // Create a Pellet graph using the KB from OWLAPI
         PelletInfGraph graph = new org.mindswap.pellet.jena.PelletReasoner().bind( kb );
         // Wrap the graph in a model
         InfModel model = ModelFactory.createInfModel( graph );
         // Use the model to SPARQL queries
The model created this way cannot be used to answer SPARQL queries that query for RDF syntax triples, e.g. SELECT * WHERE { ?x owl:onProperty ?p }.

  • Jena un framework Java per costruire Semantic Web applications (vedi la pagina ufficiale). Fornisce un ambiente di programmazione per RDF, RDFS, OWL, SPARQL e include un inference engine rule-based.
    Il framework include:
    1. RDF API
    2. lettura e scrittura di RDF in RDF/XML, N3 e N-Triples
    3. OWL API
    4. storage in-memory e persistente
    5. SPARQL query engine

  • Pellet is a free open-source Java-based reasoner for SROIQ with simple datatypes (vedi la pagina ufficiale). It implements a tableau-based decision procedure for general TBoxes (subsumption, satisfiability, classification) and ABoxes (retrieval, conjunctive query answering). It supports the OWL-API, the DIG interface, and the Jena interface and comes with numerous other features.

to top

You are here: Tesi > EarmarkFretta > EarmarkFrettaDiarioDiBordo > AppuntiTestPrestazioni

to top

Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Fabio's Wiki? Send feedback