All Downloads are FREE. Search and download functionalities are using the official Maven repository.

protege.code-generation.2.0.0.source-code.implementation.functional.object.property Maven / Gradle / Ivy

Go to download

Generate Java code from an OWL ontology in the Protege Desktop editing environment.

The newest version!

    /* ***************************************************
     * Object Property ${propertyIri}
     */
     
    public Collection get${OwlProperty}() {
        return getDelegate().getPropertyValues(getOwlIndividual(),
                                               Vocabulary.${VocabProperty},
                                               ${propertyRangeImplementation}.class);
    }

    public boolean has${OwlProperty}() {
	   return !get${OwlProperty}().isEmpty();
    }

    public void add${OwlProperty}(${propertyRange} new${OwlProperty}) {
        getDelegate().addPropertyValue(getOwlIndividual(),
                                       Vocabulary.${VocabProperty},
                                       new${OwlProperty});
    }

    public void remove${OwlProperty}(${propertyRange} old${OwlProperty}) {
        getDelegate().removePropertyValue(getOwlIndividual(),
                                          Vocabulary.${VocabProperty},
                                          old${OwlProperty});
    }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy