org.trellisldp.vocabulary.JSONLD Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of trellis-vocabulary Show documentation
Show all versions of trellis-vocabulary Show documentation
The core components for a Trellis linked data server
/*
* Copyright (c) 2021 Aaron Coburn and individual contributors
*
* 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.trellisldp.vocabulary;
import static org.trellisldp.vocabulary.VocabUtils.createIRI;
import org.apache.commons.rdf.api.IRI;
/**
* JSON-LD vocabulary terms.
*
* @see The JSON-LD Vocabulary
*
* @author acoburn
*/
public final class JSONLD {
/* Namespace */
private static final String URI = "http://www.w3.org/ns/json-ld#";
/* Properties */
public static final IRI context = createIRI(getNamespace() + "context");
public static final IRI id = createIRI(getNamespace() + "id");
public static final IRI type = createIRI(getNamespace() + "type");
/* Named Individuals */
public static final IRI compacted = createIRI(getNamespace() + "compacted");
public static final IRI expanded = createIRI(getNamespace() + "expanded");
public static final IRI flattened = createIRI(getNamespace() + "flattened");
public static final IRI frame = createIRI(getNamespace() + "frame");
public static final IRI framed = createIRI(getNamespace() + "framed");
/**
* get the namespace.
*
* @return namespace
*/
public static String getNamespace() {
return URI;
}
private JSONLD() {
// prevent instantiation
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy