org.nlp2rdf.core
Interface URIGenerator

All Known Implementing Classes:
AbstractURIGenerator, MD5Based, OffsetBased

public interface URIGenerator

Author:
Sebastian Hellmann - http://bis.informatik.uni-leipzig.de/SebastianHellmann

Method Summary
 void assignRecipeClass(String uri, com.hp.hpl.jena.ontology.OntModel model)
          adds an rdf:type statement to model for the respective recipe
 String getRecipeUri()
          This returns the recipe class form the String ontology: http://nlp2rdf.lod2.eu/schema/string/
 opennlp.tools.util.Span getSpanFor(String prefix, String uri, String text, String anchoredPart)
           
 void init(String text, Set<opennlp.tools.util.Span> spans)
           
 String makeUri(String prefix, String text, opennlp.tools.util.Span span)
          Depending on the implementation, it might be necessary to call init before calling this function
 String makeUri(String prefix, String text, opennlp.tools.util.Span span, com.hp.hpl.jena.ontology.OntModel model)
          Additionally creates the uri in the model and assigns the recipe class
 

Method Detail

makeUri

String makeUri(String prefix,
               String text,
               opennlp.tools.util.Span span)
Depending on the implementation, it might be necessary to call init before calling this function

Parameters:
prefix -
text -
span -
Returns:

makeUri

String makeUri(String prefix,
               String text,
               opennlp.tools.util.Span span,
               com.hp.hpl.jena.ontology.OntModel model)
Additionally creates the uri in the model and assigns the recipe class

Parameters:
prefix -
text -
span -
model -
Returns:

getSpanFor

opennlp.tools.util.Span getSpanFor(String prefix,
                                   String uri,
                                   String text,
                                   String anchoredPart)

init

void init(String text,
          Set<opennlp.tools.util.Span> spans)

getRecipeUri

String getRecipeUri()
This returns the recipe class form the String ontology: http://nlp2rdf.lod2.eu/schema/string/

Returns:
a URI from http://nlp2rdf.lod2.eu/schema/string/

assignRecipeClass

void assignRecipeClass(String uri,
                       com.hp.hpl.jena.ontology.OntModel model)
adds an rdf:type statement to model for the respective recipe

Parameters:
uri -
model -


Copyright © 2011. All Rights Reserved.