edu.stanford.protege.webprotege.hierarchy.ObjectPropertyHierarchyDescriptor Maven / Gradle / Ivy
The newest version!
package edu.stanford.protege.webprotege.hierarchy;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeName;
import org.semanticweb.owlapi.model.OWLObjectProperty;
import org.semanticweb.owlapi.vocab.OWLRDFVocabulary;
import uk.ac.manchester.cs.owl.owlapi.OWLObjectPropertyImpl;
import java.util.Set;
@JsonTypeName("ObjectPropertyHierarchyDescriptor")
public record ObjectPropertyHierarchyDescriptor(@JsonProperty("roots") Set roots) implements HierarchyDescriptor {
public ObjectPropertyHierarchyDescriptor(Set roots) {
this.roots = Set.copyOf(roots);
}
public static ObjectPropertyHierarchyDescriptor create() {
return new ObjectPropertyHierarchyDescriptor(Set.of(new OWLObjectPropertyImpl(OWLRDFVocabulary.OWL_TOP_OBJECT_PROPERTY.getIRI())));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy