org.trellisldp.vocabulary.Memento 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;
/**
* RDF Terms from the Memento Vocabulary.
*
* @see HTTP Framework for Time-Based Access to Resource States
*
* @author acoburn
*/
public final class Memento {
/* Namespace */
private static final String URI = "http://mementoweb.org/ns#";
/* Classes */
public static final IRI Memento = createIRI(getNamespace() + "Memento");
public static final IRI OriginalResource = createIRI(getNamespace() + "OriginalResource");
public static final IRI TimeGate = createIRI(getNamespace() + "TimeGate");
public static final IRI TimeMap = createIRI(getNamespace() + "TimeMap");
/* Properties */
public static final IRI memento = createIRI(getNamespace() + "memento");
public static final IRI mementoDatetime = createIRI(getNamespace() + "mementoDatetime");
public static final IRI timegate = createIRI(getNamespace() + "timegate");
public static final IRI timemap = createIRI(getNamespace() + "timemap");
public static final IRI original = createIRI(getNamespace() + "original");
/**
* get the namespace.
*
* @return namespace
*/
public static String getNamespace() {
return URI;
}
private Memento() {
// prevent instantiation
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy