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

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

Go to download

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

The newest version!

    /* ***************************************************
     * Data Property ${propertyIri}
     */
     
    public Collection get${OwlProperty}() {
		return getDelegate().getPropertyValues(getOwlIndividual(), Vocabulary.${VocabProperty}, ${propertyRangeForClass}.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