Changes between Initial Version and Version 1 of AOPorter


Ignore:
Timestamp:
07/03/06 12:29:14 (18 years ago)
Author:
endres
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AOPorter

    v1 v1  
     1[[TracNav]] 
     2 
     3= AlignmentOntology (AO) Im-/Exporter Tool = 
     4 
     5Developer: [mailto:endres@dfki.uni-kl.de Björn Endres] 
     6 
     7== Description == 
     8This tool enables the user to export any PhaseLibs alignment to an RDF file, specifying the alignment within the AO RDFS scheme. In reverse, it is able to wrap such an RDF file in an PhaseLibs alignment implementation. 
     9 
     10== Specification == 
     11 
     12The tool's main class is 
     13 {{{de.dfki.km.phaselib.tools.alignmentOntology.AOJenaAlignment}}} 
     14 
     15A Jena-like vocabulary class for the AO is provided by the class 
     16 {{{de.dfki.km.phaselib.tools.alignmentOntology.AO}}} 
     17 
     18== Usage == 
     19 
     20To '''import''' an RDF file to a PhaseLibs alignment, call the static 
     21 {{{AOJenaAlignment.importAlignment(source, ontologyProvider)}}} 
     22 
     23method of the main class. The ''source'' parameter should be the RDF file or a [http://java.sun.com/j2se/1.4.2/docs/api/java/io/InputStream.html InputStream] providing the RDF data. The ''ontologyProvider'' will be used, to get PhaseLibs ontology adapters for the ontologies referenced in the alignment. 
     24 
     25In order to '''export''' an arbitrary alignment, the static  
     26 {{{AOJenaAlignment.exportAlignment(alignment, uri, sink)}}} 
     27 
     28should be called. The ''uri'' parameter must provide a URI for the alignment, since PhaseLibs alignments do not have URIs. The ''sink'' parameter specifies the [http://java.sun.com/j2se/1.4.2/docs/api/java/io/OutputStream.html OutputStream] to write the RDF/XML data to. 
     29 
     30''Remark:'' if the alignment provided is an AOJenaAlignment (as produced by the ''importAlignment(source, ontologyProvider)'' method), the ''writeTo(sink)'' method of this alignment implementation is called. This allows the user to keep all AO extensions that are not reflected in the PhaseLibs alignment concept, since the wrapped RDF Jena model is written out. 
     31 
     32=== Dependencies === 
     33 
     34Needs the [http://jena.sourceforge.net/index.html Jena Project], version 2.0 or higher. 
     35 
     36== License Issues == 
     37TODO