org.nlp2rdf.core.impl
Class AbstractURIGenerator
java.lang.Object
org.nlp2rdf.core.impl.AbstractURIGenerator
- All Implemented Interfaces:
- URIGenerator
- Direct Known Subclasses:
- MD5Based, OffsetBased
public abstract class AbstractURIGenerator
- extends Object
- implements URIGenerator
User: @author Sebastian Hellmann
Date: 10/13/11
Time: 6:15 AM
AbstractURIGenerator
public AbstractURIGenerator()
makeUri
public String makeUri(String prefix,
String text,
opennlp.tools.util.Span span,
com.hp.hpl.jena.ontology.OntModel model)
- Description copied from interface:
URIGenerator
- Additionally creates the uri in the model and assigns the recipe class
- Specified by:
makeUri in interface URIGenerator
- Returns:
getSpanFor
public opennlp.tools.util.Span getSpanFor(String prefix,
String uri,
String text,
String anchoredPart)
- Specified by:
getSpanFor in interface URIGenerator
init
public void init(String text,
Set<opennlp.tools.util.Span> spans)
- Specified by:
init in interface URIGenerator
Copyright © 2011. All Rights Reserved.