
de.uni_stuttgart.vis.vowl.owl2vowl.model.AbstractVowlObject Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of OWL2VOWL Show documentation
Show all versions of OWL2VOWL Show documentation
Owl2Vowl is an ontology converter used to convert the given ontology to a json
format that is used in the WebVOWL visualization. See
https://github.com/VisualDataWeb/WebVOWL or http://vowl.visualdataweb.org/.
The newest version!
/*
* AbstractVowlObject.java
*
*/
package de.uni_stuttgart.vis.vowl.owl2vowl.model;
import de.uni_stuttgart.vis.vowl.owl2vowl.model.annotation.Annotations;
import de.uni_stuttgart.vis.vowl.owl2vowl.parser.helper.ComparisonHelper;
import org.semanticweb.owlapi.model.IRI;
/**
*
*/
public abstract class AbstractVowlObject implements HasIri, HasAnnotations, VowlVisitable {
protected IRI iri;
protected IRI baseIri;
private Annotations annotations = new Annotations();
public AbstractVowlObject(IRI iri) {
this.iri = iri;
if (iri != null) {
baseIri = IRI.create(ComparisonHelper.extractBaseIRI(iri.toString()));
}
}
public IRI getBaseIri() {
return baseIri;
}
@Override
public Annotations getAnnotations() {
return annotations;
}
@Override
public IRI getIri() {
return iri;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy