Class IntegerOntology

    • Method Detail

      • getName

        public String getName()
        Description copied from interface: Ontology
        Return the name of this ontology
        Specified by:
        getName in interface Ontology
        Returns:
        the name of the ontology
      • getDescription

        public String getDescription()
        Description copied from interface: Ontology
        Return a human-readable description of this ontology, or the empty string if none is available
        Specified by:
        getDescription in interface Ontology
        Returns:
        the description of the term
      • getTerms

        public Set getTerms()
        Description copied from interface: Ontology
        Return all the terms in this ontology
        Specified by:
        getTerms in interface Ontology
        Returns:
        a Set of all Terms of the ontology.
      • getTriples

        public Set getTriples​(Term subject,
                              Term object,
                              Term predicate)
        Description copied from interface: Ontology
        Return all triples from this ontology which match the supplied pattern. If any of the parameters of this method are null, they are treated as wildcards.
        Specified by:
        getTriples in interface Ontology
        Parameters:
        subject - The subject to search for, or null
        object - The object to search for, or null
        predicate - The relationship to search for, or null.
        Returns:
        a Set of triples
      • getOps

        public OntologyOps getOps()
        Description copied from interface: Ontology
        Return the associated OntologyOps. This method should be implemented by ontology implementors to allow OntoTools to get optimized access to some usefull ontology operations. It is not intended that users will ever invoke this. A sensible dumb implementation of this would return a per-ontology instance of DefaultOps.
        Specified by:
        getOps in interface Ontology
        Returns:
        the OntologyOps instance associated with this instance.
      • importTerm

        public Term importTerm​(Term t,
                               String name)
        Description copied from interface: Ontology
        Create a view of a term from another ontology. If the requested term has already been imported under that name, this method returns the existing RemoteTerm object. If the term that is being imported is itself a RemoteTerm instance then first unwrap the term back to the orriginal term it represents and then produce a RemoteTerm from that. If the term being imported orriginated from this ontology, then return that term unaltered.
        Specified by:
        importTerm in interface Ontology
        Parameters:
        t - the Term to import
        name - the local name to import it under, optionally null
        Returns:
        a Term
      • createTriple

        public Triple createTriple​(Term subject,
                                   Term object,
                                   Term predicate,
                                   String name,
                                   String description)
                            throws AlreadyExistsException
        Description copied from interface: Ontology
        Creates a new Triple.
        Specified by:
        createTriple in interface Ontology
        Parameters:
        subject - the subject Term
        object - the object Term
        predicate - the predicate Term
        name - the name of the triple, or null
        description - the description of the triple, or null
        Returns:
        a new Triple over these three terms
        Throws:
        AlreadyExistsException - if a triple already exists with the same subject, object and predicate, regardless of the name and description
      • deleteTerm

        public void deleteTerm​(Term t)
        Description copied from interface: Ontology
        Remove a term from an ontology, together with all triples which refer to it.
        Specified by:
        deleteTerm in interface Ontology
      • containsTerm

        public boolean containsTerm​(String name)
        Description copied from interface: Ontology
        Determines if this ontology currently contains a term named name
        Specified by:
        containsTerm in interface Ontology
        Returns:
        true is contained
      • setName

        public void setName​(String name)
        Description copied from interface: Ontology
        Set the name for this ontology
        Specified by:
        setName in interface Ontology
        Parameters:
        name - - the name