Package org.semanticweb.owlapi.model

Examples of org.semanticweb.owlapi.model.SWRLBuiltInAtom


            return true;
        }
        if (!(obj instanceof SWRLBuiltInAtom)) {
            return false;
        }
        SWRLBuiltInAtom other = (SWRLBuiltInAtom) obj;
        return other.getPredicate().equals(getPredicate())
                && other.getArguments().equals(getArguments());
    }
View Full Code Here


                && other.getArguments().equals(getArguments());
    }

    @Override
    protected int compareObjectOfSameType(OWLObject object) {
        SWRLBuiltInAtom other = (SWRLBuiltInAtom) object;
        int diff = getPredicate().compareTo(other.getPredicate());
        if (diff != 0) {
            return diff;
        }
        List<SWRLDArgument> otherArgs = other.getArguments();
        int i = 0;
        while (i < args.size() && i < otherArgs.size()) {
            diff = args.get(i).compareTo(otherArgs.get(i));
            if (diff != 0) {
                return diff;
View Full Code Here

    }

    @Test
    public void shouldBuildSWRLBuiltInAtom() {
        // given
        SWRLBuiltInAtom expected = df.getSWRLBuiltInAtom(iri,
                Arrays.asList(var1));
        BuilderSWRLBuiltInAtom builder = new BuilderSWRLBuiltInAtom(expected,
                df);
        // when
        OWLObject built = builder.buildObject();
View Full Code Here

        List<SWRLDArgument> swrldArguments = new ArrayList<SWRLDArgument>();
        swrldArguments.add(swrldArgument1);
        swrldArguments.add(swrldArgument2);

        SWRLBuiltInAtom swrlBuiltInAtom = factory.getSWRLBuiltInAtom(
            SWRLBuiltInsVocabulary.LESS_THAN.getIRI(), swrldArguments);
        return (T) swrlBuiltInAtom;

    }
View Full Code Here

        List<SWRLDArgument> swrldArguments = new ArrayList<SWRLDArgument>();
        swrldArguments.add(swrldArgument1);
        swrldArguments.add(swrldArgument2);

        SWRLBuiltInAtom swrlBuiltInAtom = factory.getSWRLBuiltInAtom(SWRLBuiltInsVocabulary.EQUAL.getIRI(),
            swrldArguments);
        return (T) swrlBuiltInAtom;

    }
View Full Code Here

        List<SWRLDArgument> swrldArguments = new ArrayList<SWRLDArgument>();
        swrldArguments.add(swrldArgument1);
        swrldArguments.add(swrldArgument2);
        swrldArguments.add(swrldArgument3);

        SWRLBuiltInAtom swrlBuiltInAtom = factory.getSWRLBuiltInAtom(
            SWRLBuiltInsVocabulary.MULTIPLY.getIRI(), swrldArguments);

        listOfArguments.add(swrlBuiltInAtom);

        return (T) new HigherOrderSWRLAtom(swrldArgument1, listOfArguments);
View Full Code Here

        List<SWRLDArgument> swrldArguments = new ArrayList<SWRLDArgument>();
        swrldArguments.add(swrldArgument1);
        swrldArguments.add(swrldArgument2);

        SWRLBuiltInAtom swrlBuiltInAtom = factory.getSWRLBuiltInAtom(
            SWRLBuiltInsVocabulary.GREATER_THAN.getIRI(), swrldArguments);
        return (T) swrlBuiltInAtom;

    }
View Full Code Here

        List<SWRLDArgument> swrldArguments = new ArrayList<SWRLDArgument>();
        swrldArguments.add(swrldArgument1);
        swrldArguments.add(swrldArgument2);

        SWRLBuiltInAtom swrlBuiltInAtom = factory.getSWRLBuiltInAtom(
            SWRLBuiltInsVocabulary.LESS_THAN_OR_EQUAL.getIRI(), swrldArguments);
        return (T) swrlBuiltInAtom;

    }
View Full Code Here

        List<SWRLDArgument> swrldArguments = new ArrayList<SWRLDArgument>();
        swrldArguments.add(swrldArgument1);
        swrldArguments.add(swrldArgument2);
        swrldArguments.add(swrldArgument3);

        SWRLBuiltInAtom swrlBuiltInAtom = factory.getSWRLBuiltInAtom(
            SWRLBuiltInsVocabulary.SUBTRACT.getIRI(), swrldArguments);

        listOfArguments.add(swrlBuiltInAtom);

        return (T) new HigherOrderSWRLAtom(swrldArgument1, listOfArguments);
View Full Code Here

        List<SWRLDArgument> swrldArguments = new ArrayList<SWRLDArgument>();
        swrldArguments.add(swrldArgument1);
        swrldArguments.add(swrldArgument2);

        SWRLBuiltInAtom swrlBuiltInAtom = factory.getSWRLBuiltInAtom(
            SWRLBuiltInsVocabulary.GREATER_THAN_OR_EQUAL.getIRI(), swrldArguments);
        return (T) swrlBuiltInAtom;

    }
View Full Code Here

TOP

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

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.