|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.stanford.nlp.ie.ExtractorUtilities
Utility class for deserializing FieldExtractors from files.
Method Summary | |
static edu.unika.aifb.kaon.Concept |
getConcept(edu.unika.aifb.kaon.Ontology o,
String name)
Returns the Concept with the given name from the given Ontology, or null if none is found. |
static edu.unika.aifb.kaon.Relation |
getRelation(edu.unika.aifb.kaon.Ontology o,
String name)
Returns the Relation with the given name from the given Ontology, or null if none is found. |
static FieldExtractor[] |
loadAllExtractors(File dir)
Looks for all .obj files in the given directory and tries to load them as FieldExtractors. |
static FieldExtractor |
loadExtractor(File in)
Reads in a previously serialized FieldExtractor from the given input file and returns it. |
static InstanceMerger |
loadMerger(File in)
Reads in a previously serialized InstanceMerger from the given input file and returns it. |
static edu.unika.aifb.kaon.Ontology |
loadOntology(String fileNameOrURL)
Creates a new Ontology by reading in the given file or URL, which should be a .kaon file. |
static void |
storeRDF(edu.unika.aifb.kaon.Ontology o,
File f)
Serializes the given Ontology as RDF (XML) text to the given File. |
static void |
storeRDF(edu.unika.aifb.kaon.Ontology o,
PrintStream out)
Writes out RDF text (i.e. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static FieldExtractor loadExtractor(File in)
public static FieldExtractor[] loadAllExtractors(File dir)
public static InstanceMerger loadMerger(File in)
public static void storeRDF(edu.unika.aifb.kaon.Ontology o, PrintStream out) throws IOException, org.w3c.rdf.model.ModelException, org.w3c.rdf.syntax.SerializationException
IOException
org.w3c.rdf.model.ModelException
org.w3c.rdf.syntax.SerializationException
public static void storeRDF(edu.unika.aifb.kaon.Ontology o, File f) throws IOException, org.w3c.rdf.model.ModelException, org.w3c.rdf.syntax.SerializationException
IOException
org.w3c.rdf.model.ModelException
org.w3c.rdf.syntax.SerializationException
public static edu.unika.aifb.kaon.Concept getConcept(edu.unika.aifb.kaon.Ontology o, String name)
public static edu.unika.aifb.kaon.Relation getRelation(edu.unika.aifb.kaon.Ontology o, String name)
public static edu.unika.aifb.kaon.Ontology loadOntology(String fileNameOrURL)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |