Examples of SWRLLiteralArgument


Examples of org.semanticweb.owlapi.model.SWRLLiteralArgument

        body.add(df.getSWRLClassAtom(Class(iri("B")), varX));
        SWRLVariable varQ = df.getSWRLVariable(IRI("urn:swrl#q"));
        SWRLVariable varR = df.getSWRLVariable(IRI("urn:swrl#r"));
        body.add(df.getSWRLDataPropertyAtom(DataProperty(iri("d")), varX, varQ));
        OWLLiteral lit = Literal(33);
        SWRLLiteralArgument litArg = df.getSWRLLiteralArgument(lit);
        body.add(df.getSWRLDataPropertyAtom(DataProperty(iri("d")), varY,
                litArg));
        Set<SWRLAtom> head = new HashSet<>();
        head.add(df.getSWRLClassAtom(Class(iri("C")), varX));
        head.add(df.getSWRLObjectPropertyAtom(ObjectProperty(iri("p")), varY,
View Full Code Here

Examples of org.semanticweb.owlapi.model.SWRLLiteralArgument

        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"));
        body.add(df.getSWRLDataPropertyAtom(DataProperty(iri("d")), varX, varQ));
        OWLLiteral lit = Literal(33);
        SWRLLiteralArgument litArg = df.getSWRLLiteralArgument(lit);
        body.add(df.getSWRLDataPropertyAtom(DataProperty(iri("d")), varY,
                litArg));
        Set<SWRLAtom> head = new HashSet<>();
        head.add(df.getSWRLClassAtom(Class(iri("C")), varX));
        head.add(df.getSWRLObjectPropertyAtom(ObjectProperty(iri("p")), varY,
View Full Code Here

Examples of org.semanticweb.owlapi.model.SWRLLiteralArgument

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

Examples of org.semanticweb.owlapi.model.SWRLLiteralArgument

    }

    @Test
    public void shouldBuildSWRLLiteralArgument() {
        // given
        SWRLLiteralArgument expected = df.getSWRLLiteralArgument(lit);
        BuilderSWRLLiteralArgument builder = new BuilderSWRLLiteralArgument(
                expected, df);
        // when
        OWLObject built = builder.buildObject();
        // then
View Full Code Here

Examples of org.semanticweb.owlapi.model.SWRLLiteralArgument

            return true;
        }
        if (!(obj instanceof SWRLLiteralArgumentImpl)) {
            return false;
        }
        SWRLLiteralArgument other = (SWRLLiteralArgument) obj;
        return other.getLiteral().equals(getLiteral());
    }
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.