com.atomgraph.server.vocabulary.HTTP Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of processor Show documentation
Show all versions of processor Show documentation
Ontology-driven Linked Data processor and server for SPARQL backends
/*
* Copyright 2014 Martynas Jusevičius .
*
* 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 com.atomgraph.server.vocabulary;
import org.apache.jena.ontology.DatatypeProperty;
import org.apache.jena.ontology.ObjectProperty;
import org.apache.jena.ontology.OntClass;
import org.apache.jena.ontology.OntModel;
import org.apache.jena.ontology.OntModelSpec;
import org.apache.jena.rdf.model.ModelFactory;
import org.apache.jena.rdf.model.Resource;
/**
* HTTP Vocabulary in RDF
*
* @author Martynas Jusevičius {@literal }
* @see HTTP Vocabulary in RDF 1.0
*/
public class HTTP
{
/** The RDF model that holds the vocabulary terms
*/
private static OntModel m_model = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM, null);
/** The namespace of the vocabulary as a string
*/
public static final String NS = "http://www.w3.org/2011/http#";
/** The namespace of the vocabulary as a string
* @see #NS */
public static String getURI()
{
return NS;
}
/** The namespace of the vocabulary as a resource
*/
public static final Resource NAMESPACE = m_model.createResource( NS );
public static final OntClass Response = m_model.createClass( NS + "Response" );
public static final ObjectProperty sc = m_model.createObjectProperty( NS + "sc" );
public static final DatatypeProperty statusCodeValue = m_model.createDatatypeProperty( NS + "statusCodeValue" );
public static final DatatypeProperty reasonPhrase = m_model.createDatatypeProperty( NS + "reasonPhrase" );
public static final DatatypeProperty absoluteURI = m_model.createDatatypeProperty( NS + "absoluteURI" );
public static final DatatypeProperty absolutePath = m_model.createDatatypeProperty( NS + "absolutePath" );
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy