public class OntologyExtractor extends Object
| Constructor and Description |
|---|
OntologyExtractor() |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
collectOwlOntologies(Graph source,
Set<String> exclude)
Collect OWL Ontologies from a given graph, but exclude those from a supplied set.
|
void |
collectShapeOntologies(Graph source,
Set<String> namespaceSet,
Graph target) |
void |
extract(Vertex ontology,
Graph target)
Extract the terms within a given ontology and copy them into a target graph.
|
Set<String> |
shapeNamespaces(Graph graph)
Get a list of the namespaces for shapes contained in a given graph.
|
public void extract(Vertex ontology, Graph target) throws ExtractException
ontology - The vertex representing the ontology to be extracted.target - The target graph into which the elements of the ontology will be placed.ExtractExceptionpublic Set<String> shapeNamespaces(Graph graph)
graph - A graph containing sh:Shape nodes.public Set<String> collectOwlOntologies(Graph source, Set<String> exclude)
source - The source graph from which OWL Ontologies will be collected.exclude - The set of IRI values for ontologies to be excluded.Copyright © 2019. All rights reserved.