Skip to content

Commit

Permalink
Merge pull request #1250 from eclipse/issues/GH-1113-shacl-api
Browse files Browse the repository at this point in the history
GH-1113 added shared constant vocabulary for SHACL shape graph
  • Loading branch information
Jeen Broekstra authored Jan 20, 2019
2 parents 6da11e6 + 912ff8a commit 9eeb84c
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions model/src/main/java/org/eclipse/rdf4j/model/vocabulary/RDF4J.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/*******************************************************************************
* Copyright (c) 2019 Eclipse RDF4J contributors.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Distribution License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*******************************************************************************/
package org.eclipse.rdf4j.model.vocabulary;

import org.eclipse.rdf4j.model.IRI;
import org.eclipse.rdf4j.model.Namespace;
import org.eclipse.rdf4j.model.impl.SimpleNamespace;
import org.eclipse.rdf4j.model.impl.SimpleValueFactory;

/**
* Defines constants for the RDF4J namespace. These constants include things like implementation-specific
* named graph identifiers or properties.
*
* @author Jeen Broekstra
*/
public class RDF4J {

/**
* The RDF4J namespace ( <tt>http://rdf4j.org/schema/rdf4j#</tt>).
*/
public static final String NAMESPACE = "http://rdf4j.org/schema/rdf4j#";

/**
* Recommended prefix for the RDF4J namespace: "rdf4j"
*/
public static final String PREFIX = "rdf4j";

/**
* An immutable {@link Namespace} constant that represents the RDF4J namespace.
*/
public static final Namespace NS = new SimpleNamespace(PREFIX, NAMESPACE);

/**
* Context identifier for persisting SHACL shape data in the {@link ShaclSail}.
* <tt>http://rdf4j.org/schema/rdf4j#SHACLShapeGraph</tt>
*/
public final static IRI SHACL_SHAPE_GRAPH = SimpleValueFactory.getInstance().createIRI(NAMESPACE,
"SHACLShapeGraph");
}

0 comments on commit 9eeb84c

Please sign in to comment.