congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
OWLDataFactory.getRDFSLabel
Code IndexAdd Tabnine to your IDE (free)

How to use
getRDFSLabel
method
in
org.semanticweb.owlapi.model.OWLDataFactory

Best Java code snippets using org.semanticweb.owlapi.model.OWLDataFactory.getRDFSLabel (Showing top 20 results out of 315)

origin: ontodev/robot

/**
 * Get a set of default annotation properties. Currenly includes only RDFS label.
 *
 * @return a set of annotation properties
 */
public static Set<OWLAnnotationProperty> getDefaultAnnotationProperties() {
 Set<OWLAnnotationProperty> annotationProperties = new HashSet<>();
 annotationProperties.add(dataFactory.getRDFSLabel());
 return annotationProperties;
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

/**
 * Shorthand for
 * {@code getOWLAnnotation(getRDFSLabel(), getOWLLiteral(value), annotations)}
 *
 * @param value The annotation value.
 * @param annotations annotations
 * @return an rdfs:label annotation with provided value
 */
default OWLAnnotation getRDFSLabel(OWLAnnotationValue value,
  Stream<OWLAnnotation> annotations) {
  return getOWLAnnotation(getRDFSLabel(), value, annotations);
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

/**
 * Shorthand for
 * {@code getOWLAnnotation(getRDFSLabel(), getOWLLiteral(value))}
 *
 * @param value The annotation value.
 * @return an rdfs:label annotation with provided value
 */
default OWLAnnotation getRDFSLabel(OWLAnnotationValue value) {
  return getOWLAnnotation(getRDFSLabel(), value);
}
origin: owlcs/owlapi

/**
 * Shorthand for
 * {@code getOWLAnnotation(getRDFSLabel(), getOWLLiteral(value))}
 *
 * @param value The annotation value.
 * @return an rdfs:label annotation with provided value
 */
default OWLAnnotation getRDFSLabel(OWLAnnotationValue value) {
  return getOWLAnnotation(getRDFSLabel(), value);
}
origin: owlcs/owlapi

/**
 * Shorthand for
 * {@code getOWLAnnotation(getRDFSLabel(), getOWLLiteral(value), annotations)}
 *
 * @param value The annotation value.
 * @param annotations annotations
 * @return an rdfs:label annotation with provided value
 */
default OWLAnnotation getRDFSLabel(OWLAnnotationValue value,
  Stream<OWLAnnotation> annotations) {
  return getOWLAnnotation(getRDFSLabel(), value, annotations);
}
origin: net.sourceforge.owlapi/owlapi-distribution

/**
 * Shorthand for
 * {@code getOWLAnnotation(getRDFSLabel(), getOWLLiteral(value))}
 *
 * @param value The annotation value.
 * @return an rdfs:label annotation with provided value
 */
default OWLAnnotation getRDFSLabel(OWLAnnotationValue value) {
  return getOWLAnnotation(getRDFSLabel(), value);
}
origin: net.sourceforge.owlapi/owlapi-distribution

/**
 * Shorthand for
 * {@code getOWLAnnotation(getRDFSLabel(), getOWLLiteral(value), annotations)}
 *
 * @param value The annotation value.
 * @param annotations annotations
 * @return an rdfs:label annotation with provided value
 */
default OWLAnnotation getRDFSLabel(OWLAnnotationValue value,
  Stream<OWLAnnotation> annotations) {
  return getOWLAnnotation(getRDFSLabel(), value, annotations);
}
origin: protegeproject/webprotege

@Nonnull
public static OWLAnnotationPropertyData getRdfsLabelData() {
  return OWLAnnotationPropertyData.get(
      dataFactory.getRDFSLabel(),
      OWLRDFVocabulary.RDFS_LABEL.getPrefixedName(),
      ImmutableMap.of()
  );
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

/**
 * Shorthand for
 * {@code getOWLAnnotation(getRDFSLabel(), getOWLLiteral(value))}
 *
 * @param value The annotation value.
 * @return an rdfs:label annotation with provided value
 */
default OWLAnnotation getRDFSLabel(String value) {
  return getOWLAnnotation(getRDFSLabel(), getOWLLiteral(value));
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

/**
 * Shorthand for
 * {@code getOWLAnnotation(getRDFSLabel(), getOWLLiteral(value), annotations)}
 *
 * @param value The annotation value.
 * @param annotations annotations
 * @return an rdfs:label annotation with provided value
 */
default OWLAnnotation getRDFSLabel(String value, Stream<OWLAnnotation> annotations) {
  return getOWLAnnotation(getRDFSLabel(), getOWLLiteral(value), annotations);
}
origin: owlcs/owlapi

/**
 * Shorthand for
 * {@code getOWLAnnotation(getRDFSLabel(), getOWLLiteral(value))}
 *
 * @param value The annotation value.
 * @return an rdfs:label annotation with provided value
 */
default OWLAnnotation getRDFSLabel(String value) {
  return getOWLAnnotation(getRDFSLabel(), getOWLLiteral(value));
}
origin: owlcs/owlapi

/**
 * Shorthand for
 * {@code getOWLAnnotation(getRDFSLabel(), getOWLLiteral(value), annotations)}
 *
 * @param value The annotation value.
 * @param annotations annotations
 * @return an rdfs:label annotation with provided value
 */
default OWLAnnotation getRDFSLabel(String value, Stream<OWLAnnotation> annotations) {
  return getOWLAnnotation(getRDFSLabel(), getOWLLiteral(value), annotations);
}
origin: net.sourceforge.owlapi/owlapi-distribution

/**
 * Shorthand for
 * {@code getOWLAnnotation(getRDFSLabel(), getOWLLiteral(value), annotations)}
 *
 * @param value The annotation value.
 * @param annotations annotations
 * @return an rdfs:label annotation with provided value
 */
default OWLAnnotation getRDFSLabel(String value, Stream<OWLAnnotation> annotations) {
  return getOWLAnnotation(getRDFSLabel(), getOWLLiteral(value), annotations);
}
origin: net.sourceforge.owlapi/owlapi-distribution

/**
 * Shorthand for
 * {@code getOWLAnnotation(getRDFSLabel(), getOWLLiteral(value))}
 *
 * @param value The annotation value.
 * @return an rdfs:label annotation with provided value
 */
default OWLAnnotation getRDFSLabel(String value) {
  return getOWLAnnotation(getRDFSLabel(), getOWLLiteral(value));
}
origin: edu.stanford.protege/org.protege.owl.diff

public static ShortFormProvider getDefaultShortFormProvider(OWLOntology ontology) {
  List<OWLAnnotationProperty> annotationProperties = Collections.singletonList(OWLManager.getOWLDataFactory().getRDFSLabel());
  List<String> langs = getDefaultLanguages();
  return getShortFormProvider(ontology, annotationProperties, langs);
}

origin: edu.stanford.protege/owl-diff-engine

public static ShortFormProvider getDefaultShortFormProvider(OWLOntology ontology) {
  List<OWLAnnotationProperty> annotationProperties = Collections.singletonList(OWLManager.getOWLDataFactory().getRDFSLabel());
  List<String> langs = getDefaultLanguages();
  return getShortFormProvider(ontology, annotationProperties, langs);
}

origin: edu.stanford.protege/mapping-master

public OWLAxiom createLabelAnnotationAxiom(OWLEntity entity, String label, Optional<String> languageTag)
{
 OWLLiteral value;
 if (languageTag.isPresent()) {
   value = owlDataFactory.getOWLLiteral(label, languageTag.get());
 } else {
   value = owlDataFactory.getOWLLiteral(label);
 }
 OWLAnnotation labelAnno = owlDataFactory.getOWLAnnotation(owlDataFactory.getRDFSLabel(), value);
 return owlDataFactory.getOWLAnnotationAssertionAxiom(entity.getIRI(), labelAnno);
}
origin: protegeproject/webprotege

public OWLAnnotation toAnnotation(OBOXRef xref) {
  OWLAnnotationProperty xrefAnnotationProperty = df.getOWLAnnotationProperty(getXRefPropertyIRI());
  String oboId = xref.toOBOId();
  Set<OWLAnnotation> descriptionAnnotations;
  if (xref.getDescription().isEmpty()) {
    descriptionAnnotations = Collections.emptySet();
  }
  else {
    OWLAnnotation descriptionAnnotation = df.getOWLAnnotation(df.getRDFSLabel(), df.getOWLLiteral(xref.getDescription()));
    descriptionAnnotations = Collections.singleton(descriptionAnnotation);
  }
  return df.getOWLAnnotation(xrefAnnotationProperty, df.getOWLLiteral(oboId), descriptionAnnotations);
}
origin: net.sourceforge.owlapi/oboformat-included-owlapi

private OWLAnnotationProperty trTagToAnnotationProp(String tag) {
  IRI iri = trTagToIRI(tag);
  OWLAnnotationProperty ap = fac.getOWLAnnotationProperty(iri);
  if (!apToDeclare.contains(ap)) {
    apToDeclare.add(ap);
    add(fac.getOWLDeclarationAxiom(ap));
    Obo2OWLVocabulary vocab = Obo2OWLConstants.getVocabularyObj(tag);
    if(vocab != null){
      add (fac.getOWLAnnotationAssertionAxiom(fac.getRDFSLabel(), iri, trLiteral( vocab.getLabel()) ) );
    }
  }
  return ap;
}
origin: flekschas/owl2neo4j

private Label getLabel (OWLClass c, OWLOntology ont) {
  Label classLabel = new Label(null, null);
  for (OWLAnnotation annotation : c.getAnnotations(ont, this.dataFactory.getRDFSLabel())) {
    if (annotation.getValue() instanceof OWLLiteral) {
      OWLLiteral val = (OWLLiteral) annotation.getValue();
      classLabel.setText(val.getLiteral().replace("'", "\\'"));
      classLabel.setLang(val.getLang());
    }
  }
  return classLabel;
}
org.semanticweb.owlapi.modelOWLDataFactorygetRDFSLabel

Javadoc

Gets an annotation property that has an IRI corresponding to rdfs:label.

Popular methods of OWLDataFactory

  • getOWLClass
    Gets an OWL class that has the specified IRI
  • getOWLNamedIndividual
    Gets an OWL individual that has the specified IRI
  • getOWLObjectProperty
    Gets an OWL object property that has the specified IRI
  • getOWLSubClassOfAxiom
  • getOWLClassAssertionAxiom
  • getOWLDataProperty
    Gets an OWL data property that has the specified IRI
  • getOWLThing
    Gets the built in owl:Thing class, which has a URI of
  • getOWLAnnotationProperty
    Gets an OWLAnnotationProperty that has the specified IRI
  • getOWLLiteral
    Convenience method that obtains a literal typed as a boolean.
  • getOWLDeclarationAxiom
    Gets a declaration with zero or more annotations for an entity
  • getOWLObjectIntersectionOf
  • getOWLEquivalentClassesAxiom
  • getOWLObjectIntersectionOf,
  • getOWLEquivalentClassesAxiom,
  • getOWLObjectSomeValuesFrom,
  • getOWLNothing,
  • getOWLObjectComplementOf,
  • getOWLObjectPropertyAssertionAxiom,
  • getOWLAnnotationAssertionAxiom,
  • getOWLDataPropertyAssertionAxiom,
  • getOWLDatatype,
  • getOWLAnnotation

Popular in Java

  • Reading from database using SQL prepared statement
  • putExtra (Intent)
  • addToBackStack (FragmentTransaction)
  • setContentView (Activity)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • JComboBox (javax.swing)
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now