/******************************************************************************* * Copyright 2012 Pearson Education * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package org.semantictools.frame.model; public class OntologyInfo { private String ontologyURI; private String namespaceURI; private String prefix; private String label; private OntologyType type = OntologyType.RDF; private boolean hasClasses; public OntologyInfo() { } public OntologyInfo(String ontologyURI, String prefix, String uri, OntologyType type) { this.ontologyURI = ontologyURI; this.namespaceURI = uri; this.prefix = prefix; this.type = type; } public String getOntologyURI() { return ontologyURI; } public void setOntologyURI(String uri) { ontologyURI = uri; } /** * Returns the namespace used by this ontology, which * should end in a slash or a hash. By convention, * classes and properties defined by the ontology use * this namespace. * @return */ public String getNamespaceUri() { return namespaceURI; } public void setNamespaceUri(String uri) { this.namespaceURI = uri; } public String getPrefix() { return prefix; } public void setPrefix(String prefix) { this.prefix = prefix; } public String getLabel() { return label; } public void setLabel(String label) { this.label = label; } public OntologyType getType() { return type; } public void setType(OntologyType type) { this.type = type; } /** * Returns true if this Ontology defines any RDF classes and false otherwise. */ public boolean hasClasses() { return hasClasses; } public void setHasClasses(boolean hasClasses) { this.hasClasses = hasClasses; } }