Examples of SWRLAtom


Examples of org.semanticweb.owlapi.model.SWRLAtom

        ExpressionAtom argument1 = tmp.getNumericFunctionAtom1();
        ExpressionAtom argument2 = tmp.getNumericFunctionAtom2();

        OWLDataFactory factory = OWLManager.getOWLDataFactory();

        SWRLAtom swrlAtom1 = (SWRLAtom) adapter.adaptTo(argument1, SWRLRule.class);
        SWRLAtom swrlAtom2 = (SWRLAtom) adapter.adaptTo(argument2, SWRLRule.class);

        SWRLDArgument swrldArgument1 = factory.getSWRLVariable(IRI.create(Symbols.variablesPrefix
                                                                          + mul_result));
        SWRLDArgument swrldArgument2;
        SWRLDArgument swrldArgument3;
View Full Code Here

Examples of org.semanticweb.owlapi.model.SWRLAtom

    public List<SWRLAtom> parseRuleAtoms() throws ParserException {
        String sep = ",";
        List<SWRLAtom> atoms = new ArrayList<SWRLAtom>();
        while (sep.equals(",")) {
            potentialKeywords.remove(",");
            SWRLAtom atom = parseRuleAtom();
            atoms.add(atom);
            sep = peekToken();
            if (sep.equals(",")) {
                consumeToken();
            }
View Full Code Here

Examples of org.semanticweb.owlapi.model.SWRLAtom

// Rules
//
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
  final public SWRLRule DLSafeRule() throws ParseException {
    Set<OWLAnnotation> annos;
    SWRLAtom atom;
    Set<SWRLAtom> body;
    Set<SWRLAtom> head;
    jj_consume_token(DLSAFERULE);
    jj_consume_token(OPENPAR);
    annos = AxiomAnnotationSet();
View Full Code Here

Examples of org.semanticweb.owlapi.model.SWRLAtom

        return dataFactory.getSWRLRule(body, head, annos);
   
  }

  final public SWRLAtom Atom() throws ParseException {
    SWRLAtom atom;
    if (jj_2_119(2)) {
      atom = ClassAtom();
    } else if (jj_2_120(2)) {
      atom = DataRangeAtom();
    } else if (jj_2_121(2)) {
View Full Code Here

Examples of org.semanticweb.owlapi.model.SWRLAtom

    return axiom;
  }

  private SWRLAtom parseToSWRLAtom(ATermAppl term) {
    SWRLAtom atom = null;

    if( term.getAFun().equals( ATermUtils.TYPEFUN ) ) {
      ATermAppl i = (ATermAppl) term.getArgument( 0 );
      OWLObject type = conceptConverter.convert( (ATermAppl) term
          .getArgument( 1 ) );
View Full Code Here

Examples of org.semanticweb.owlapi.model.SWRLAtom

        String sparql = ruleAtom.toSPARQL().getObject();
        if (sparql == null) {
            fail(this.getClass().getCanonicalName() + " does not produce any rule as SPARQL CONSTRUCT.");
        }

        SWRLAtom swrlAtom = ruleAtom.toSWRL(factory);
        if (swrlAtom == null) {
            fail(this.getClass().getCanonicalName() + " does not produce any rule in SWRL.");
        }

        JenaClauseEntry jenaEntry = ruleAtom.toJenaClauseEntry(jenaVariableMap);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.