本文整理了Java中org.semanticweb.owlapi.model.OWLSubPropertyChainOfAxiom.getPropertyChain()方法的一些代码示例,展示了OWL
本文整理了Java中org.semanticweb.owlapi.model.OWLSubPropertyChainOfAxiom.getPropertyChain()
方法的一些代码示例,展示了OWLSubPropertyChainOfAxiom.getPropertyChain()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。OWLSubPropertyChainOfAxiom.getPropertyChain()
方法的具体详情如下:
包路径:org.semanticweb.owlapi.model.OWLSubPropertyChainOfAxiom
类名称:OWLSubPropertyChainOfAxiom
方法名:getPropertyChain
OWLSubPropertyChainOfAxiom.getPropertyChain介绍
[英]Gets the chain of properties that represents the subproperty in this axiom.
[中]获取表示此公理中的子属性的属性链。
代码示例
代码示例来源:origin: owlcs/owlapi
@Override
public void visit(OWLSubPropertyChainOfAxiom axiom) {
rhs.add(axiom.getSuperProperty());
lhs.addAll(axiom.getPropertyChain());
}
代码示例来源:origin: net.sourceforge.owlapi/owlapi-distribution
@Override
public void visit(OWLSubPropertyChainOfAxiom axiom) {
rhs.add(axiom.getSuperProperty());
lhs.addAll(axiom.getPropertyChain());
}
代码示例来源:origin: net.sourceforge.owlapi/owlapi-osgidistribution
@Override
public void visit(OWLSubPropertyChainOfAxiom axiom) {
rhs.add(axiom.getSuperProperty());
lhs.addAll(axiom.getPropertyChain());
}
代码示例来源:origin: owlcs/owlapi
@Override
public void visit(OWLSubPropertyChainOfAxiom axiom) {
addSingleTripleAxiom(axiom, axiom.getSuperProperty(), OWL_PROPERTY_CHAIN_AXIOM.getIRI(),
axiom.getPropertyChain().stream());
}
代码示例来源:origin: net.sourceforge.owlapi/owlapi-distribution
@Override
public void visit(OWLSubPropertyChainOfAxiom axiom) {
addSingleTripleAxiom(axiom, axiom.getSuperProperty(), OWL_PROPERTY_CHAIN_AXIOM.getIRI(),
axiom.getPropertyChain().stream());
}
代码示例来源:origin: org.semanticweb.more/more-reasoner
public void visit(OWLSubPropertyChainOfAxiom axiom) {
isSupportedByELK = true;
for (OWLObjectPropertyExpression prop : axiom.getPropertyChain()){
isSupportedByELK = isSupportedByELK && !(prop.isAnonymous());
}
isSupportedByELK = isSupportedByELK && !(axiom.getSuperProperty().isAnonymous());
}
代码示例来源:origin: protegeproject/protege
public void setAxiom(OWLSubPropertyChainOfAxiom ax) {
String rendering = "";
for (Iterator it = ax.getPropertyChain().iterator(); it.hasNext();) {
rendering += owlEditorKit.getModelManager().getRendering(it.next());
if (it.hasNext()) {
rendering += " o ";
}
}
editor.setText(rendering);
setSuperProperty(ax.getSuperProperty());
}
代码示例来源:origin: edu.stanford.protege/org.protege.editor.owl
public void setAxiom(OWLSubPropertyChainOfAxiom ax) {
String rendering = "";
for (Iterator it = ax.getPropertyChain().iterator(); it.hasNext();) {
rendering += owlEditorKit.getModelManager().getRendering(it.next());
if (it.hasNext()) {
rendering += " o ";
}
}
editor.setText(rendering);
setSuperProperty(ax.getSuperProperty());
}
代码示例来源:origin: net.sourceforge.owlapi/owlapi-distribution
@Override
public void visit(OWLSubPropertyChainOfAxiom axiom) {
addConstruct(ROLE_REFLEXIVITY_CHAINS);
axiom.getPropertyChain().forEach(o -> o.accept(this));
axiom.getSuperProperty().accept(this);
}
代码示例来源:origin: owlcs/owlapi
@Override
public void visit(OWLSubPropertyChainOfAxiom axiom) {
addConstruct(ROLE_REFLEXIVITY_CHAINS);
axiom.getPropertyChain().forEach(o -> o.accept(this));
axiom.getSuperProperty().accept(this);
}
代码示例来源:origin: owlcs/owlapi
@Override
public void visit(OWLSubPropertyChainOfAxiom axiom) {
process(axiom);
axiom.getPropertyChain().forEach(a -> a.accept(this));
axiom.getSuperProperty().accept(this);
}
代码示例来源:origin: net.sourceforge.owlapi/owlapi-distribution
@Override
public void visit(OWLSubPropertyChainOfAxiom axiom) {
process(axiom);
axiom.getPropertyChain().forEach(a -> a.accept(this));
axiom.getSuperProperty().accept(this);
}
代码示例来源:origin: owlcs/owlapi
@Override
public OWLSubPropertyChainOfAxiom visit(OWLSubPropertyChainOfAxiom ax) {
List chain =
asList(ax.getPropertyChain().stream().map(this::t));
return df.getOWLSubPropertyChainOfAxiom(chain, t(ax.getSuperProperty()), a(ax));
}
代码示例来源:origin: owlcs/owlapi
@Override
public void visit(OWLSubPropertyChainOfAxiom ax) {
obj = df
.getOWLSubPropertyChainOfAxiom(asList(ax.getPropertyChain().stream().map(this::dup)),
dup(ax
.getSuperProperty()), anns(ax));
}
代码示例来源:origin: owlcs/owlapi
@Override
public OWLSubPropertyChainOfAxiom visit(OWLSubPropertyChainOfAxiom axiom) {
List chain = asList(
axiom.getPropertyChain().stream().map(this::get));
return df.getOWLSubPropertyChainOfAxiom(chain, get(axiom.getSuperProperty()), anns(axiom));
}
代码示例来源:origin: net.sourceforge.owlapi/owlapi-osgidistribution
@Override
public OWLSubPropertyChainOfAxiom visit(OWLSubPropertyChainOfAxiom ax) {
List chain =
asList(ax.getPropertyChain().stream().map(this::t));
return df.getOWLSubPropertyChainOfAxiom(chain, t(ax.getSuperProperty()), a(ax));
}
代码示例来源:origin: net.sourceforge.owlapi/owlapi
public void visit(OWLSubPropertyChainOfAxiom axiom) {
axiom.getSuperProperty().accept(this);
OWLObjectPropertyExpression prop = (OWLObjectPropertyExpression) obj;
List chain = new ArrayList();
for (OWLObjectPropertyExpression p : axiom.getPropertyChain()) {
p.accept(this);
chain.add((OWLObjectPropertyExpression) obj);
}
obj = dataFactory.getOWLSubPropertyChainOfAxiom(chain, prop, duplicateAxiomAnnotations(axiom));
}
代码示例来源:origin: net.sourceforge.owlapi/owlapi-distribution
@Override
public void visit(OWLSubPropertyChainOfAxiom ax) {
obj = df
.getOWLSubPropertyChainOfAxiom(asList(ax.getPropertyChain().stream().map(this::dup)),
dup(ax
.getSuperProperty()), anns(ax));
}
代码示例来源:origin: owlcs/owlapi
@Override
default int initHashCode() {
int hash = hashIndex();
hash = OWLObject.hashIteration(hash, getPropertyChain().hashCode());
hash = OWLObject.hashIteration(hash, getSuperProperty().hashCode());
return OWLObject.hashIteration(hash, annotationsAsList().hashCode());
}
代码示例来源:origin: net.sourceforge.owlapi/owlapi-distribution
@Override
default int initHashCode() {
int hash = hashIndex();
hash = OWLObject.hashIteration(hash, getPropertyChain().hashCode());
hash = OWLObject.hashIteration(hash, getSuperProperty().hashCode());
return OWLObject.hashIteration(hash, annotationsAsList().hashCode());
}