Modifier and Type | Field and Description |
---|---|
protected Map<String,Set<String>> |
parentsOf
Parents of a given concept, map from concept name to Set of parent concepts.
|
Constructor and Description |
---|
RDFOntology(InputStream in,
String base)
Construct an ontology from an InputStream.
|
RDFOntology(com.hp.hpl.jena.rdf.model.Model model)
Construct an ontology from an existing RDF Model.
|
RDFOntology(String url,
String lang)
Construct an ontology from an URL.
|
Modifier and Type | Method and Description |
---|---|
double |
distance(Object concept1,
Object concept2)
Some notion of semantic distance between the two concepts.
|
protected void |
extractTriples(com.hp.hpl.jena.rdf.model.Model model)
Extract the triples from the Model into the ontology.
|
boolean |
isA(Object child,
Object parent)
Whether a child concept is a sub-type of the parent.
|
public RDFOntology(com.hp.hpl.jena.rdf.model.Model model)
public RDFOntology(InputStream in, String base) throws IOException
IOException
protected void extractTriples(com.hp.hpl.jena.rdf.model.Model model)
public boolean isA(Object child, Object parent)
public double distance(Object concept1, Object concept2)
Copyright © 2015 Pablo Duboue. All rights reserved.