Constructor and Description |
---|
DefaultOntology() |
DefaultOntology(CloseableIterator<Object> parser) |
DefaultOntology(RuleSet rules) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(Rule rule) |
boolean |
addAll(CloseableIterator<Rule> ruleIterator) |
boolean |
addAll(Iterator<Rule> ruleIterator) |
boolean |
contains(Rule rule) |
NegativeConstraint |
getNegativeConstraint(String name) |
Set<String> |
getNegativeConstraintNames() |
Rule |
getRule(String name) |
Set<String> |
getRuleNames() |
Set<Predicate> |
getVocabulary() |
boolean |
isEmpty() |
Iterator<Rule> |
iterator() |
boolean |
remove(Rule rule) |
boolean |
removeAll(CloseableIterator<Rule> ruleIterator) |
boolean |
removeAll(Iterator<Rule> ruleIterator) |
int |
size() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public DefaultOntology()
public DefaultOntology(RuleSet rules)
public DefaultOntology(CloseableIterator<Object> parser) throws RuleSetException
RuleSetException
public Set<String> getRuleNames()
getRuleNames
in interface Ontology
public Set<String> getNegativeConstraintNames()
getNegativeConstraintNames
in interface Ontology
public NegativeConstraint getNegativeConstraint(String name)
getNegativeConstraint
in interface Ontology
public boolean add(Rule rule)
public boolean addAll(CloseableIterator<Rule> ruleIterator) throws RuleSetException
addAll
in interface Ontology
addAll
in interface RuleSet
RuleSetException
public boolean remove(Rule rule)
public boolean removeAll(CloseableIterator<Rule> ruleIterator) throws RuleSetException
removeAll
in interface Ontology
removeAll
in interface RuleSet
RuleSetException
public boolean contains(Rule rule)
public int size()
public Set<Predicate> getVocabulary()
getVocabulary
in interface Ontology
public boolean isEmpty()
isEmpty
in interface ImmutableRuleSet
isEmpty
in interface RuleSet
Copyright © 2014–2018 GraphIK (INRIA - LIRMM). All rights reserved.