Examples of SWRLIArgument


Examples of org.semanticweb.owlapi.model.SWRLIArgument

        throw new Error("Missing return statement in function");
    }

    final public SWRLDifferentIndividualsAtom DifferentIndividualsAtom()
            throws ParseException {
        SWRLIArgument arg0;
        SWRLIArgument arg1;
        jj_consume_token(DIFFERENTINDIVIDUALSATOM);
        jj_consume_token(OPENPAR);
        arg0 = IArg();
        arg1 = IArg();
        jj_consume_token(CLOSEPAR);
View Full Code Here

Examples of org.semanticweb.owlapi.model.SWRLIArgument

        throw new Error("Missing return statement in function");
    }

    final public SWRLIArgument IArg() throws ParseException {
        OWLNamedIndividual ind;
        SWRLIArgument arg;
        IRI iri;
        switch (jj_ntk == -1 ? jj_ntk_f() : jj_ntk) {
            case VARIABLE: {
                jj_consume_token(VARIABLE);
                jj_consume_token(OPENPAR);
View Full Code Here

Examples of org.semanticweb.owlapi.model.SWRLIArgument

        SWRLAtom classResourceAtom = (SWRLAtom) adapter.adaptTo(classResource, SWRLRule.class);
        SWRLAtom argumentAtom = (SWRLAtom) adapter.adaptTo(argument, SWRLRule.class);

        OWLClass classPredicate;
        SWRLIArgument argumentResource;

        if (classResourceAtom instanceof ArgumentSWRLAtom) {

            classPredicate = factory.getOWLClass(IRI.create(((ArgumentSWRLAtom) classResourceAtom).getId()));
        } else {
View Full Code Here

Examples of org.semanticweb.owlapi.model.SWRLIArgument

        SWRLAtom objectAtom = (SWRLAtom) adapter.adaptTo(argument2, SWRLRule.class);

        OWLDataFactory factory = OWLManager.getOWLDataFactory();

        OWLObjectProperty owlObjectProperty;
        SWRLIArgument swrliArgument1;
        SWRLIArgument swrliArgument2;

        if (predicateAtom instanceof ArgumentSWRLAtom) {
            owlObjectProperty = factory.getOWLObjectProperty(IRI.create(((ArgumentSWRLAtom) predicateAtom)
                    .getId()));
        } else {
View Full Code Here

Examples of org.semanticweb.owlapi.model.SWRLIArgument

        SWRLAtom arg2Atom = (SWRLAtom) adapter.adaptTo(argument2, SWRLRule.class);

        OWLDataFactory factory = OWLManager.getOWLDataFactory();

        OWLDataProperty owlDataProperty;
        SWRLIArgument swrliArgument;
        SWRLDArgument swrldArgument;

        if (predicateAtom instanceof ArgumentSWRLAtom) {
            owlDataProperty = factory.getOWLDataProperty(IRI.create(((ArgumentSWRLAtom) predicateAtom)
                    .getId()));
View Full Code Here

Examples of org.semanticweb.owlapi.model.SWRLIArgument

        org.apache.stanbol.rules.manager.atoms.ResourceAtom tmp = (org.apache.stanbol.rules.manager.atoms.ResourceAtom) ruleAtom;
        URI uri = tmp.getURI();

        OWLDataFactory factory = OWLManager.getOWLDataFactory();
        OWLIndividual owlIndividual = factory.getOWLNamedIndividual(IRI.create(uri.toString()));
        SWRLIArgument swrliArgument = factory.getSWRLIndividualArgument(owlIndividual);
        return (T) new ArgumentSWRLAtom(swrliArgument, uri.toString());
    }
View Full Code Here

Examples of org.semanticweb.owlapi.model.SWRLIArgument

        String predicate = consumeToken();
        if (!isDataPropertyName(predicate)) {
            throw createException(false, false, true, false);
        }
        consumeToken("(");
        SWRLIArgument obj1 = parseIObject();
        consumeToken(",");
        SWRLDArgument obj2 = parseDObject();
        consumeToken(")");
        return dataFactory.getSWRLDataPropertyAtom(getOWLDataProperty(predicate), obj1, obj2);
    }
View Full Code Here

Examples of org.semanticweb.owlapi.model.SWRLIArgument

        String predicate = consumeToken();
        if (!isObjectPropertyName(predicate)) {
            throw createException(false, true, false, false);
        }
        consumeToken("(");
        SWRLIArgument obj1 = parseIObject();
        consumeToken(",");
        SWRLIArgument obj2 = parseIObject();
        consumeToken(")");
        return dataFactory.getSWRLObjectPropertyAtom(getOWLObjectProperty(predicate), obj1, obj2);
    }
View Full Code Here

Examples of org.semanticweb.owlapi.model.SWRLIArgument

        String predicate = consumeToken();
        if (!isClassName(predicate)) {
            throw createException(true, false, false, false);
        }
        consumeToken("(");
        SWRLIArgument obj = parseIObject();
        consumeToken(")");
        return dataFactory.getSWRLClassAtom(getOWLClass(predicate), obj);
    }
View Full Code Here

Examples of org.semanticweb.owlapi.model.SWRLIArgument


    public SWRLDifferentIndividualsAtom parseDifferentFromAtom() throws ParserException {
        consumeToken(ManchesterOWLSyntax.DIFFERENT_FROM.toString());
        consumeToken("(");
        SWRLIArgument obj1 = parseIObject();
        consumeToken(",");
        SWRLIArgument obj2 = parseIObject();
        consumeToken(")");
        return dataFactory.getSWRLDifferentIndividualsAtom(obj1, obj2);
    }
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.