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

org.molgenis.data.semantic.Relation Maven / Gradle / Ivy

There is a newer version: 8.4.5
Show newest version
package org.molgenis.data.semantic;

@SuppressWarnings("squid:S00115") // Constant names should comply with a naming convention
public enum Relation {
  instanceOf("http://molgenis.org/biobankconnect/instanceOf"),
  link("http://molgenis.org/biobankconnect/link"),
  homepage("http://xmlns.com/foaf/0.1/homepage"),
  isDefinedBy("http://www.w3.org/2000/01/rdf-schema#isDefinedBy"),
  seeAlso("http://www.w3.org/2000/01/rdf-schema#seeAlso"),
  hasLowerValue("http://molgenis.org/uml/hasLowerValue"),
  hasUpperValue("http://molgenis.org/uml/hasUpperValue"),
  isRealizationOf("http://molgenis.org/uml/isRealizationOf"),
  isGeneralizationOf("http://molgenis.org/uml/isGeneralizationOf"),
  hasSourceId("http://molgenis.org/uml/hasSourceId"),
  hasSourceName("http://molgenis.org/uml/hasSourceName"),
  isAssociatedWith("http://molgenis.org#isAssociatedWith");

  private String iri;

  Relation(String iri) {
    this.iri = iri;
  }

  public String getIRI() {
    return iri;
  }

  public String getLabel() {
    return toString();
  }

  public static Relation forIRI(String string) {
    for (Relation relation : values()) {
      if (relation.getIRI().equals(string)) {
        return relation;
      }
    }
    return null;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy