Package org.semanticweb.owlapi.model

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


// 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

        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

    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

        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

Related Classes of org.semanticweb.owlapi.model.SWRLAtom

Copyright © 2018 www.massapicom. 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.