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

de.uni_stuttgart.vis.vowl.owl2vowl.model.BaseEntity Maven / Gradle / Ivy

Go to download

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/.

There is a newer version: 0.3.1
Show newest version
/*
 * BaseEntity.java
 *
 */

package de.uni_stuttgart.vis.vowl.owl2vowl.model;

import de.uni_stuttgart.vis.vowl.owl2vowl.constants.Vowl_Lang;
import de.uni_stuttgart.vis.vowl.owl2vowl.export.JsonGeneratorVisitor;
import de.uni_stuttgart.vis.vowl.owl2vowl.model.nodes.BaseNode;
import de.uni_stuttgart.vis.vowl.owl2vowl.parser.container.Annotation;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author Vincent Link, Eduard Marbach
 */
public class BaseEntity {
	protected String id;
	protected String name;
	protected String comment;
	protected String type;
	protected String iri;
	protected String definedBy;
	protected String owlVersion;
	protected List attributes;
	protected List subClasses;
	protected List superClasses;
	protected Map comments;
	protected Map labels;
	protected Map> annotations;

	/**
	 * Creates a new class object in owl form.
	 * Used for converting the RDF/XML and OWL/XML to the WebVOWL format.
	 */
	public BaseEntity() {
		attributes = new ArrayList();
		subClasses = new ArrayList();
		superClasses = new ArrayList();
		comments = new HashMap();
		labels = new HashMap();
		annotations = new HashMap>();
	}

	public Map> getAnnotations() {
		return annotations;
	}

	public void setAnnotations(Map> annotations) {
		this.annotations = annotations;
	}

	public Map getComments() {
		return comments;
	}

	public void setComments(Map comments) {
		this.comments = comments;
	}

	public Map getLabels() {
		return labels;
	}

	public void setLabels(Map labels) {
		this.labels = labels;
	}

	public void setName(String name) {
		labels.put(Vowl_Lang.LANG_DEFAULT, name);
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		comments.put(Vowl_Lang.LANG_DEFAULT, comment);
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getIri() {
		return iri;
	}

	public void setIri(String iri) {
		this.iri = iri;
	}

	public List getAttributes() {
		return attributes;
	}

	public void setAttributes(List attributes) {
		this.attributes = attributes;
	}

	public List getSubClasses() {
		return subClasses;
	}

	public void setSubClasses(List subClasses) {
		this.subClasses = subClasses;
	}

	public List getSuperClasses() {
		return superClasses;
	}

	public void setSuperClasses(List superClasses) {
		this.superClasses = superClasses;
	}

	public String getId() {
		return id;
	}

	protected void setId(String id) {
		this.id = id;
	}

	public String getOwlVersion() {
		return owlVersion;
	}

	public void setOwlVersion(String owlVersion) {
		this.owlVersion = owlVersion;
	}

	public String getDefinedBy() {
		return definedBy;
	}

	public void setDefinedBy(String definedBy) {
		this.definedBy = definedBy;
	}

	public void accept(JsonGeneratorVisitor visitor) {
		visitor.visit(this);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy