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

edu.stanford.protege.webprotege.hierarchy.AnnotationPropertyHierarchyDescriptor 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.OWLAnnotationProperty;
import org.semanticweb.owlapi.vocab.OWLRDFVocabulary;
import uk.ac.manchester.cs.owl.owlapi.OWLAnnotationPropertyImpl;
import uk.ac.manchester.cs.owl.owlapi.OWLObjectPropertyImpl;

import java.util.Set;

@JsonTypeName("AnnotationPropertyHierarchyDescriptor")
public record AnnotationPropertyHierarchyDescriptor(@JsonProperty("roots") Set roots) implements HierarchyDescriptor {

    public AnnotationPropertyHierarchyDescriptor(@JsonProperty("roots") Set roots) {
        this.roots = Set.copyOf(roots);
    }

    public static AnnotationPropertyHierarchyDescriptor create() {
        return new AnnotationPropertyHierarchyDescriptor(Set.of());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy