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

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

java 2次浏览

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

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

示例1: visit

点赞 3

import org.semanticweb.owlapi.model.SWRLLiteralArgument; //导入依赖的package包/类
public void visit(SWRLDataRangeAtom atom) {
    if (atom.getArgument() instanceof SWRLVariable)
        throwVarError(atom);
    // dr(literal) :-
    // convert to: ClassAssertion(DataSomeValuesFrom(freshDP DataOneOf(literal)) freshIndividual)
    // and top -> \forall freshDP.dr
    OWLLiteral lit=((SWRLLiteralArgument)atom.getArgument()).getLiteral();
    OWLDataRange dr=atom.getPredicate();
    OWLNamedIndividual freshIndividual=getFreshIndividual();
    OWLDataProperty freshDP=getFreshDataProperty();
    OWLDataSomeValuesFrom some=m_factory.getOWLDataSomeValuesFrom(freshDP,m_factory.getOWLDataOneOf(lit));
    OWLClassExpression definition=getDefinitionFor(some,m_alreadyExists);
    if (!m_alreadyExists[0])
        m_newInclusions.add(new OWLClassExpression[] { negative(definition),some });
    addFact(m_factory.getOWLClassAssertionAxiom(definition,freshIndividual));
    m_newInclusions.add(new OWLClassExpression[] { m_factory.getOWLDataAllValuesFrom(freshDP,dr) });
}
 

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

示例2: equals

点赞 2

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

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

示例3: visit

点赞 2

import org.semanticweb.owlapi.model.SWRLLiteralArgument; //导入依赖的package包/类
public Atom visit(SWRLLiteralArgument arg) {
    throw new IllegalStateException("Internal error: this part of the code is unused.");
}
 

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

示例4: visit

点赞 2

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

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

示例5: visit

点赞 2

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

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

示例6: visit

点赞 2

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

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

示例7: visit

点赞 2

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

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

示例8: visit

点赞 2

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

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

示例9: compareObjectOfSameType

点赞 2

import org.semanticweb.owlapi.model.SWRLLiteralArgument; //导入依赖的package包/类
@Override
protected int compareObjectOfSameType(OWLObject object) {
    return literal.compareTo(((SWRLLiteralArgument) object).getLiteral());
}
 

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

示例10: visit

点赞 2

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

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

示例11: visit

点赞 2

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

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

示例12: writeObject

点赞 2

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

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

示例13: readObject

点赞 2

import org.semanticweb.owlapi.model.SWRLLiteralArgument; //导入依赖的package包/类
@Override
protected SWRLLiteralArgument readObject(BinaryOWLInputStream inputStream) throws IOException, BinaryOWLParseException {
    OWLLiteral literal = inputStream.readOWLObject();
    return inputStream.getDataFactory().getSWRLLiteralArgument(literal);
}
 

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


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