本文整理汇总了Java中org.semanticweb.owlapi.model.OWLAsymmetricObjectPropertyAxiom类的典型用法代码示例。如果您正苦于以下问题:Java OWLAsymmetricObjectPropertyAxiom类的具体用法?Java OWLAsymmetricObjectPropertyAxiom怎么用?Java OWLAsymmetricObjectPropertyAxiom使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
OWLAsymmetricObjectPropertyAxiom类属于org.semanticweb.owlapi.model包,在下文中一共展示了OWLAsymmetricObjectPropertyAxiom类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: visit
import org.semanticweb.owlapi.model.OWLAsymmetricObjectPropertyAxiom; //导入依赖的package包/类
@Override
public T visit(OWLAsymmetricObjectPropertyAxiom axiom) {
throw new IllegalArgumentException(
OWLAsymmetricObjectPropertyAxiom.class.getSimpleName()
+ " cannot be converted to "
+ getTargetClass().getSimpleName());
}
示例2: visit
import org.semanticweb.owlapi.model.OWLAsymmetricObjectPropertyAxiom; //导入依赖的package包/类
/**
* Asymetric Role Assertion <i>Asy(r)</i> is translated to:</br>
* </br>
* :- r(X,Y),r(Y,X).
*
* @see org.semanticweb.owlapi.model.OWLAxiomVisitor#visit(org.semanticweb.owlapi.model.OWLAsymmetricObjectPropertyAxiom)
*/
public void visit(OWLAsymmetricObjectPropertyAxiom asymetricProperty) {
OWLObjectPropertyExpression property = asymetricProperty.getProperty();
String propertyName = mapper.getPredicateName(property.getNamedProperty());
String cVar = var.currentVar();
String nVar = var.nextVariable();
writer.write("icons " + ASP2CoreSymbols.IMPLICATION);
writer.write(String.format(" activated(%d), ", nConstraints++));
writer.write(propertyName);
writer.write(ASP2CoreSymbols.BRACKET_OPEN);
writer.write(cVar);
writer.write(ASP2CoreSymbols.ARG_SEPERATOR);
writer.write(nVar);
writer.write(ASP2CoreSymbols.BRACKET_CLOSE);
writer.write(ASP2CoreSymbols.CONJUNCTION);
//writer.write(ASP2CoreSymbols.NAF);
//writer.write(ASP2CoreSymbols.SPACE);
writer.write(propertyName);
writer.write(ASP2CoreSymbols.BRACKET_OPEN);
writer.write(nVar);
writer.write(ASP2CoreSymbols.ARG_SEPERATOR);
writer.write(cVar);
writer.write(ASP2CoreSymbols.BRACKET_CLOSE);
writer.write(ASP2CoreSymbols.EOR);
}
示例3: visit
import org.semanticweb.owlapi.model.OWLAsymmetricObjectPropertyAxiom; //导入依赖的package包/类
/**
* Asymetric Role Assertion <i>Asy(r)</i> is translated to:</br>
* </br>
* :- r(X,Y),r(Y,X).
*
* @see org.semanticweb.owlapi.model.OWLAxiomVisitor#visit(org.semanticweb.owlapi.model.OWLAsymmetricObjectPropertyAxiom)
*/
public void visit(OWLAsymmetricObjectPropertyAxiom asymetricProperty) {
writer.write(ASP2CoreSymbols.IMPLICATION);
OWLObjectPropertyExpression property = asymetricProperty.getProperty();
String propertyName = mapper.getPredicateName(property.getNamedProperty());
String cVar = var.currentVar();
String nVar = var.nextVariable();
writer.write(propertyName);
writer.write(ASP2CoreSymbols.BRACKET_OPEN);
writer.write(cVar);
writer.write(ASP2CoreSymbols.ARG_SEPERATOR);
writer.write(nVar);
writer.write(ASP2CoreSymbols.BRACKET_CLOSE);
writer.write(ASP2CoreSymbols.CONJUNCTION);
//writer.write(ASP2CoreSymbols.NAF);
//writer.write(ASP2CoreSymbols.SPACE);
writer.write(propertyName);
writer.write(ASP2CoreSymbols.BRACKET_OPEN);
writer.write(nVar);
writer.write(ASP2CoreSymbols.ARG_SEPERATOR);
writer.write(cVar);
writer.write(ASP2CoreSymbols.BRACKET_CLOSE);
writer.write(ASP2CoreSymbols.EOR);
}
示例4: visit
import org.semanticweb.owlapi.model.OWLAsymmetricObjectPropertyAxiom; //导入依赖的package包/类
@Override
public void visit(OWLAsymmetricObjectPropertyAxiom axiom) {
String propertyURI = axiom.getProperty().asOWLObjectProperty().toStringID();
ParameterizedSparqlString query = new ParameterizedSparqlString("?s ?p ?o . FILTER NOT EXISTS{?o ?p ?s}");
query.setIri("p", propertyURI);
sparql += query.toString();
}
示例5: getAxiomWithoutAnnotations
import org.semanticweb.owlapi.model.OWLAsymmetricObjectPropertyAxiom; //导入依赖的package包/类
@Nonnull
@Override
public OWLAsymmetricObjectPropertyAxiom getAxiomWithoutAnnotations() {
if (!isAnnotated()) {
return this;
}
return new OWLAsymmetricObjectPropertyAxiomImpl(getProperty(),
NO_ANNOTATIONS);
}
示例6: equals
import org.semanticweb.owlapi.model.OWLAsymmetricObjectPropertyAxiom; //导入依赖的package包/类
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!super.equals(obj)) {
return false;
}
return obj instanceof OWLAsymmetricObjectPropertyAxiom;
}
示例7: visit
import org.semanticweb.owlapi.model.OWLAsymmetricObjectPropertyAxiom; //导入依赖的package包/类
public void visit(OWLAsymmetricObjectPropertyAxiom axiom) {
notSupported(axiom);
}
示例8: visit
import org.semanticweb.owlapi.model.OWLAsymmetricObjectPropertyAxiom; //导入依赖的package包/类
public void visit(OWLAsymmetricObjectPropertyAxiom axiom) {
makeAsymmetric(axiom.getProperty());
m_axioms.m_objectPropertiesOccurringInOWLAxioms.add(axiom.getProperty().getNamedProperty());
}
示例9: visit
import org.semanticweb.owlapi.model.OWLAsymmetricObjectPropertyAxiom; //导入依赖的package包/类
public Boolean visit(OWLAsymmetricObjectPropertyAxiom axiom) {
return reasoner.isAsymmetric(axiom.getProperty());
}
示例10: visit
import org.semanticweb.owlapi.model.OWLAsymmetricObjectPropertyAxiom; //导入依赖的package包/类
@Override
public OWLAsymmetricObjectPropertyAxiom visit(
ElkAsymmetricObjectPropertyAxiom axiom) {
return owlFactory_.getOWLAsymmetricObjectPropertyAxiom(
convert(axiom.getProperty()));
}
示例11: convert
import org.semanticweb.owlapi.model.OWLAsymmetricObjectPropertyAxiom; //导入依赖的package包/类
@SuppressWarnings("static-method")
public ElkAsymmetricObjectPropertyAxiom convert(
OWLAsymmetricObjectPropertyAxiom owlAsymmetricObjectPropertyAxiom) {
return new ElkAsymmetricObjectPropertyAxiomWrap<OWLAsymmetricObjectPropertyAxiom>(
owlAsymmetricObjectPropertyAxiom);
}
示例12: visit
import org.semanticweb.owlapi.model.OWLAsymmetricObjectPropertyAxiom; //导入依赖的package包/类
@Override
public ElkAxiom visit(
OWLAsymmetricObjectPropertyAxiom owlAsymmetricObjectPropertyAxiom) {
return CONVERTER.convert(owlAsymmetricObjectPropertyAxiom);
}
示例13: visit
import org.semanticweb.owlapi.model.OWLAsymmetricObjectPropertyAxiom; //导入依赖的package包/类
@Override
public ElkObjectPropertyAxiom visit(
OWLAsymmetricObjectPropertyAxiom owlAsymmetricObjectPropertyAxiom) {
return CONVERTER.convert(owlAsymmetricObjectPropertyAxiom);
}
示例14: visit
import org.semanticweb.owlapi.model.OWLAsymmetricObjectPropertyAxiom; //导入依赖的package包/类
@Override
public void visit(OWLAsymmetricObjectPropertyAxiom axiom) {
defaultVisit(axiom);
}
示例15: visit
import org.semanticweb.owlapi.model.OWLAsymmetricObjectPropertyAxiom; //导入依赖的package包/类
@Override
public OWLAxiom visit(OWLAsymmetricObjectPropertyAxiom axiom) {
return factory.getOWLAsymmetricObjectPropertyAxiom(axiom.getProperty(), annotations);
}