• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java SWRLSameIndividualAtom类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中org.semanticweb.owlapi.model.SWRLSameIndividualAtom的典型用法代码示例。如果您正苦于以下问题:Java SWRLSameIndividualAtom类的具体用法?Java SWRLSameIndividualAtom怎么用?Java SWRLSameIndividualAtom使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

SWRLSameIndividualAtom类属于org.semanticweb.owlapi.model包,在下文中一共展示了SWRLSameIndividualAtom类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: visit

点赞 2

import org.semanticweb.owlapi.model.SWRLSameIndividualAtom; //导入依赖的package包/类
public void visit(SWRLSameIndividualAtom atom) {
    Set<OWLNamedIndividual> inds=new HashSet<OWLNamedIndividual>();
    for (SWRLArgument arg : atom.getAllArguments()) {
        if (!(arg instanceof SWRLIndividualArgument))
            throwVarError(atom);
        OWLIndividual ind=((SWRLIndividualArgument)arg).getIndividual();
        if (ind.isAnonymous())
            throwAnonIndError(atom);
        inds.add(ind.asOWLNamedIndividual());
    }
    addFact(m_factory.getOWLSameIndividualAxiom(inds));
}
 

开发者ID:robertoyus,
项目名称:HermiT-android,
代码行数:13,
代码来源:OWLNormalization.java

示例2: equals

点赞 2

import org.semanticweb.owlapi.model.SWRLSameIndividualAtom; //导入依赖的package包/类
@Override
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof SWRLSameIndividualAtom)) {
        return false;
    }
    SWRLSameIndividualAtom other = (SWRLSameIndividualAtom) obj;
    return other.getAllArguments().equals(getAllArguments());
}
 

开发者ID:matthewhorridge,
项目名称:owlapi-gwt,
代码行数:12,
代码来源:SWRLSameIndividualAtomImpl.java

示例3: visit

点赞 2

import org.semanticweb.owlapi.model.SWRLSameIndividualAtom; //导入依赖的package包/类
public Atom visit(SWRLSameIndividualAtom atom) {
    Variable variable1=toVariable(atom.getFirstArgument());
    Variable variable2=toVariable(atom.getSecondArgument());
    return Atom.create(Equality.INSTANCE,variable1,variable2);
}
 

开发者ID:robertoyus,
项目名称:HermiT-android,
代码行数:6,
代码来源:OWLClausification.java

示例4: visit

点赞 2

import org.semanticweb.owlapi.model.SWRLSameIndividualAtom; //导入依赖的package包/类
@Override
public O visit(SWRLSameIndividualAtom node) {
    return doDefault(node);
}
 

开发者ID:matthewhorridge,
项目名称:owlapi-gwt,
代码行数:5,
代码来源:OWLObjectVisitorExAdapter.java

示例5: visit

点赞 2

import org.semanticweb.owlapi.model.SWRLSameIndividualAtom; //导入依赖的package包/类
@Override
public void visit(SWRLSameIndividualAtom node) {
    handleDefault(node);
}
 

开发者ID:matthewhorridge,
项目名称:owlapi-gwt,
代码行数:5,
代码来源:OWLObjectVisitorAdapter.java

示例6: visit

点赞 2

import org.semanticweb.owlapi.model.SWRLSameIndividualAtom; //导入依赖的package包/类
@Override
public void visit(SWRLSameIndividualAtom node) {
    type = RULE_OBJECT_TYPE_INDEX_BASE + 9;
}
 

开发者ID:matthewhorridge,
项目名称:owlapi-gwt,
代码行数:5,
代码来源:OWLObjectTypeIndexProvider.java

示例7: visit

点赞 2

import org.semanticweb.owlapi.model.SWRLSameIndividualAtom; //导入依赖的package包/类
@Override
public void visit(SWRLSameIndividualAtom node) {
    node.getFirstArgument().accept(this);
    node.getSecondArgument().accept(this);
}
 

开发者ID:matthewhorridge,
项目名称:owlapi-gwt,
代码行数:6,
代码来源:SWRLVariableExtractor.java

示例8: visit

点赞 2

import org.semanticweb.owlapi.model.SWRLSameIndividualAtom; //导入依赖的package包/类
@Override
public void visit(SWRLSameIndividualAtom node) {
    hashCode = primes[71];
    hashCode = hashCode * MULT + node.getFirstArgument().hashCode();
    hashCode = hashCode * MULT + node.getSecondArgument().hashCode();
}
 

开发者ID:matthewhorridge,
项目名称:owlapi-gwt,
代码行数:7,
代码来源:HashCode.java

示例9: visit

点赞 2

import org.semanticweb.owlapi.model.SWRLSameIndividualAtom; //导入依赖的package包/类
@Override
public SWRLSameIndividualAtom visit(SWRLSameIndividualAtom node) {
    return node;
}
 

开发者ID:matthewhorridge,
项目名称:owlapi-gwt,
代码行数:5,
代码来源:SWRLRuleImpl.java

示例10: visit

点赞 2

import org.semanticweb.owlapi.model.SWRLSameIndividualAtom; //导入依赖的package包/类
@Override
public void visit(@Nonnull SWRLSameIndividualAtom node) {
    node.getFirstArgument().accept(this);
    node.getSecondArgument().accept(this);
}
 

开发者ID:matthewhorridge,
项目名称:owlapi-gwt,
代码行数:6,
代码来源:AbstractEntityRegistrationManager.java

示例11: writeObject

点赞 2

import org.semanticweb.owlapi.model.SWRLSameIndividualAtom; //导入依赖的package包/类
@Override
protected void writeObject(SWRLSameIndividualAtom object, BinaryOWLOutputStream outputStream) throws IOException {
    outputStream.writeOWLObject(object.getFirstArgument());
    outputStream.writeOWLObject(object.getSecondArgument());
}
 

开发者ID:matthewhorridge,
项目名称:binaryowl,
代码行数:6,
代码来源:SWRLSameIndividualAtomSerializer.java

示例12: readObject

点赞 2

import org.semanticweb.owlapi.model.SWRLSameIndividualAtom; //导入依赖的package包/类
@Override
protected SWRLSameIndividualAtom readObject(BinaryOWLInputStream inputStream) throws IOException, BinaryOWLParseException {
    SWRLIArgument first = inputStream.readOWLObject();
    SWRLIArgument second = inputStream.readOWLObject();
    return inputStream.getDataFactory().getSWRLSameIndividualAtom(first, second);
}
 

开发者ID:matthewhorridge,
项目名称:binaryowl,
代码行数:7,
代码来源:SWRLSameIndividualAtomSerializer.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)