Package org.semanticweb.owlapi.model

Examples of org.semanticweb.owlapi.model.SWRLIndividualArgument


        SWRLVariable varX = df.getSWRLVariable(IRI("urn:swrl#x"));
        SWRLVariable varY = df.getSWRLVariable(IRI("urn:swrl#y"));
        SWRLVariable varZ = df.getSWRLVariable(IRI("urn:swrl#z"));
        Set<SWRLAtom> body = new HashSet<>();
        body.add(df.getSWRLClassAtom(Class(iri("A")), varX));
        SWRLIndividualArgument indIArg = df
                .getSWRLIndividualArgument(NamedIndividual(iri("i")));
        SWRLIndividualArgument indJArg = df
                .getSWRLIndividualArgument(NamedIndividual(iri("j")));
        body.add(df.getSWRLClassAtom(Class(iri("D")), indIArg));
        body.add(df.getSWRLClassAtom(Class(iri("B")), varX));
        SWRLVariable varQ = df.getSWRLVariable(IRI("urn:swrl#q"));
        SWRLVariable varR = df.getSWRLVariable(IRI("urn:swrl#r"));
View Full Code Here


        SWRLVariable varX = df.getSWRLVariable(IRI("http://www.owlapi#x"));
        SWRLVariable varY = df.getSWRLVariable(IRI("http://www.owlapi#y"));
        SWRLVariable varZ = df.getSWRLVariable(IRI("http://www.owlapi#z"));
        Set<SWRLAtom> body = new HashSet<>();
        body.add(df.getSWRLClassAtom(Class(iri("A")), varX));
        SWRLIndividualArgument indIArg = df
                .getSWRLIndividualArgument(NamedIndividual(iri("i")));
        SWRLIndividualArgument indJArg = df
                .getSWRLIndividualArgument(NamedIndividual(iri("j")));
        body.add(df.getSWRLClassAtom(Class(iri("D")), indIArg));
        body.add(df.getSWRLClassAtom(Class(iri("B")), varX));
        SWRLVariable varQ = df.getSWRLVariable(IRI("http://www.owlapi#q"));
        SWRLVariable varR = df.getSWRLVariable(IRI("http://www.owlapi#r"));
View Full Code Here

    }

    @Test
    public void shouldBuildSWRLIndividualArgument() {
        // given
        SWRLIndividualArgument expected = df.getSWRLIndividualArgument(i);
        BuilderSWRLIndividualArgument builder = new BuilderSWRLIndividualArgument(
                expected, df);
        // when
        OWLObject built = builder.buildObject();
        // then
View Full Code Here

            return true;
        }
        if (!(obj instanceof SWRLIndividualArgument)) {
            return false;
        }
        SWRLIndividualArgument other = (SWRLIndividualArgument) obj;
        return other.getIndividual().equals(getIndividual());
    }
View Full Code Here

            return true;
        }
        if (!(obj instanceof SWRLIndividualArgument)) {
            return false;
        }
        SWRLIndividualArgument other = (SWRLIndividualArgument) obj;
        return other.getIndividual().equals(getIndividual());
    }
View Full Code Here

TOP

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

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.