MARMOTTA-438: rebuilt ldp vocab

Project: http://git-wip-us.apache.org/repos/asf/marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/marmotta/commit/68d815e5
Tree: http://git-wip-us.apache.org/repos/asf/marmotta/tree/68d815e5
Diff: http://git-wip-us.apache.org/repos/asf/marmotta/diff/68d815e5

Branch: refs/heads/ldp
Commit: 68d815e57116b81e6206b347dca17f5cecc27404
Parents: 41cd34a
Author: Sergio Fernández <[email protected]>
Authored: Tue Apr 8 11:41:55 2014 +0200
Committer: Sergio Fernández <[email protected]>
Committed: Tue Apr 8 11:41:55 2014 +0200

----------------------------------------------------------------------
 .../apache/marmotta/commons/vocabulary/LDP.java | 221 ++++++++++++++++++-
 1 file changed, 219 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/marmotta/blob/68d815e5/commons/marmotta-sesame-tools/marmotta-model-vocabs/src/main/java/org/apache/marmotta/commons/vocabulary/LDP.java
----------------------------------------------------------------------
diff --git 
a/commons/marmotta-sesame-tools/marmotta-model-vocabs/src/main/java/org/apache/marmotta/commons/vocabulary/LDP.java
 
b/commons/marmotta-sesame-tools/marmotta-model-vocabs/src/main/java/org/apache/marmotta/commons/vocabulary/LDP.java
index 0c9ccbd..1293c1b 100644
--- 
a/commons/marmotta-sesame-tools/marmotta-model-vocabs/src/main/java/org/apache/marmotta/commons/vocabulary/LDP.java
+++ 
b/commons/marmotta-sesame-tools/marmotta-model-vocabs/src/main/java/org/apache/marmotta/commons/vocabulary/LDP.java
@@ -21,35 +21,248 @@ import org.openrdf.model.ValueFactory;
 import org.openrdf.model.impl.ValueFactoryImpl;
 
 /**
- * LDP Namespace
+ * W3C Linked Data Platform (LDP).
+ * <p>
+ * This ontology provides an informal representation of the concepts and
+ * terms as defined in the LDP specification. Consult the LDP
+ * specification for normative reference..
+ * <p>
+ * Namespace Ldp.
+ * Prefix: {@code <http://www.w3.org/ns/ldp#>}
+ *
+ * @see <a href="http://www.w3.org/2012/ldp";>http://www.w3.org/2012/ldp</a>
+ * @see <a 
href="http://www.w3.org/TR/ldp-ucr/";>http://www.w3.org/TR/ldp-ucr/</a>
+ * @see <a href="http://www.w3.org/TR/ldp/";>http://www.w3.org/TR/ldp/</a>
+ * @see <a 
href="http://www.w3.org/2011/09/LinkedData/";>http://www.w3.org/2011/09/LinkedData/</a>
  */
 public class LDP {
 
+    /** {@code http://www.w3.org/ns/ldp#} **/
     public static final String NAMESPACE = "http://www.w3.org/ns/ldp#";;
 
+    /** {@code ldp} **/
     public static final String PREFIX = "ldp";
 
+    /**
+     * BasicContainer
+     * <p>
+     * {@code http://www.w3.org/ns/ldp#BasicContainer}.
+     * <p>
+     * An LDPC that uses a predefined predicate to simply link to its
+     * contained resources.
+     *
+     * @see <a 
href="http://www.w3.org/ns/ldp#BasicContainer";>BasicContainer</a>
+     */
     public static final URI BasicContainer;
+
+    /**
+     * Container
+     * <p>
+     * {@code http://www.w3.org/ns/ldp#Container}.
+     * <p>
+     * A Linked Data Platform RDF Source (LDP-RS) that also conforms to
+     * additional patterns and conventions for managing membership. Readers
+     * should refer to the specification defining this ontology for the list
+     * of behaviors associated with it.
+     *
+     * @see <a href="http://www.w3.org/ns/ldp#Container";>Container</a>
+     */
     public static final URI Container;
+
+    /**
+     * contains
+     * <p>
+     * {@code http://www.w3.org/ns/ldp#contains}.
+     * <p>
+     * Links a container with resources created through the container.
+     *
+     * @see <a href="http://www.w3.org/ns/ldp#contains";>contains</a>
+     */
     public static final URI contains;
+
+    /**
+     * DirectContainer
+     * <p>
+     * {@code http://www.w3.org/ns/ldp#DirectContainer}.
+     * <p>
+     * An LDPC that is similar to a LDP-DC but it allows an indirection with
+     * the ability to list as member a resource, such as a URI representing a
+     * real-world object, that is different from the resource that is created
+     *
+     * @see <a 
href="http://www.w3.org/ns/ldp#DirectContainer";>DirectContainer</a>
+     */
     public static final URI DirectContainer;
+
+    /**
+     * hasMemberRelation
+     * <p>
+     * {@code http://www.w3.org/ns/ldp#hasMemberRelation}.
+     * <p>
+     * Indicates which predicate is used in membership triples, and that the
+     * membership triple pattern is < membership-constant-URI ,
+     * object-of-hasMemberRelation, member-URI >.
+     *
+     * @see <a 
href="http://www.w3.org/ns/ldp#hasMemberRelation";>hasMemberRelation</a>
+     */
     public static final URI hasMemberRelation;
+
+    /**
+     * IndirectContainer
+     * <p>
+     * {@code http://www.w3.org/ns/ldp#IndirectContainer}.
+     * <p>
+     * An LDPC that has the flexibility of choosing what form the membership
+     * triples take.
+     *
+     * @see <a 
href="http://www.w3.org/ns/ldp#IndirectContainer";>IndirectContainer</a>
+     */
     public static final URI IndirectContainer;
+
+    /**
+     * insertedContentRelation
+     * <p>
+     * {@code http://www.w3.org/ns/ldp#insertedContentRelation}.
+     * <p>
+     * Indicates which triple in a creation request should be used as the
+     * member-URI value in the membership triple added when the creation
+     * request is successful.
+     *
+     * @see <a 
href="http://www.w3.org/ns/ldp#insertedContentRelation";>insertedContentRelation</a>
+     */
     public static final URI insertedContentRelation;
+
+    /**
+     * isMemmberOfRelation
+     * <p>
+     * {@code http://www.w3.org/ns/ldp#isMemberOfRelation}.
+     * <p>
+     * Indicates which predicate is used in membership triples, and that the
+     * membership triple pattern is < member-URI ,
+     * object-of-isMemberOfRelation, membership-constant-URI >.
+     *
+     * @see <a 
href="http://www.w3.org/ns/ldp#isMemberOfRelation";>isMemberOfRelation</a>
+     */
     public static final URI isMemberOfRelation;
+
+    /**
+     * member
+     * <p>
+     * {@code http://www.w3.org/ns/ldp#member}.
+     * <p>
+     * LDP servers should use this predicate as the membership predicate if
+     * there is no obvious predicate from an application vocabulary to use.
+     *
+     * @see <a href="http://www.w3.org/ns/ldp#member";>member</a>
+     */
     public static final URI member;
+
+    /**
+     * membershipResource
+     * <p>
+     * {@code http://www.w3.org/ns/ldp#membershipResource}.
+     * <p>
+     * Indicates the membership-constant-URI in a membership triple.
+     * Depending upon the membership triple pattern a container uses, as
+     * indicated by the presence of ldp:hasMemberRelation or
+     * ldp:isMemberOfRelation, the membership-constant-URI might occupy
+     * either the subject or object position in membership triples.
+     *
+     * @see <a 
href="http://www.w3.org/ns/ldp#membershipResource";>membershipResource</a>
+     */
     public static final URI membershipResource;
+
+    /**
+     * MemberSubject
+     * <p>
+     * {@code http://www.w3.org/ns/ldp#MemberSubject}.
+     * <p>
+     * Used to indicate default and typical behavior for
+     * ldp:insertedContentRelation, where the member-URI value in the
+     * membership triple added when a creation request is successful is the
+     * URI assigned to the newly created resource.
+     *
+     * @see <a href="http://www.w3.org/ns/ldp#MemberSubject";>MemberSubject</a>
+     */
     public static final URI MemberSubject;
+
+    /**
+     * NonRDFSource
+     * <p>
+     * {@code http://www.w3.org/ns/ldp#NonRDFSource}.
+     * <p>
+     * A Linked Data Platform Resource (LDPR) whose state is NOT represented
+     * as RDF.
+     *
+     * @see <a href="http://www.w3.org/ns/ldp#NonRDFSource";>NonRDFSource</a>
+     */
     public static final URI NonRDFSource;
+
+    /**
+     * PreferContainment
+     * <p>
+     * {@code http://www.w3.org/ns/ldp#PreferContainment}.
+     * <p>
+     * URI identifying a LDPC's containment triples, for example to allow
+     * clients to express interest in receiving them.
+     *
+     * @see <a 
href="http://www.w3.org/ns/ldp#PreferContainment";>PreferContainment</a>
+     */
     public static final URI PreferContainment;
+
+    /**
+     * PreferEmptyContainer
+     * <p>
+     * {@code http://www.w3.org/ns/ldp#PreferEmptyContainer}.
+     * <p>
+     * URI identifying the subset of a LDPC's triples present in an empty
+     * LDPC, for example to allow clients to express interest in receiving
+     * them. Currently this excludes containment and membership triples, but
+     * in the future other exclusions might be added. This definition is
+     * written to automatically exclude those new classes of triples.
+     *
+     * @see <a 
href="http://www.w3.org/ns/ldp#PreferEmptyContainer";>PreferEmptyContainer</a>
+     */
     public static final URI PreferEmptyContainer;
+
+    /**
+     * PreferMembership
+     * <p>
+     * {@code http://www.w3.org/ns/ldp#PreferMembership}.
+     * <p>
+     * URI identifying a LDPC's membership triples, for example to allow
+     * clients to express interest in receiving them.
+     *
+     * @see <a 
href="http://www.w3.org/ns/ldp#PreferMembership";>PreferMembership</a>
+     */
     public static final URI PreferMembership;
+
+    /**
+     * RDFSource
+     * <p>
+     * {@code http://www.w3.org/ns/ldp#RDFSource}.
+     * <p>
+     * A Linked Data Platform Resource (LDPR) whose state is represented as
+     * RDF.
+     *
+     * @see <a href="http://www.w3.org/ns/ldp#RDFSource";>RDFSource</a>
+     */
     public static final URI RDFSource;
+
+    /**
+     * Resource
+     * <p>
+     * {@code http://www.w3.org/ns/ldp#Resource}.
+     * <p>
+     * A HTTP-addressable resource whose lifecycle is managed by a LDP
+     * server.
+     *
+     * @see <a href="http://www.w3.org/ns/ldp#Resource";>Resource</a>
+     */
     public static final URI Resource;
 
     static {
-        //TODO: check missing terms in the vocab
         ValueFactory factory = ValueFactoryImpl.getInstance();
+
         BasicContainer = factory.createURI(LDP.NAMESPACE, "BasicContainer");
         Container = factory.createURI(LDP.NAMESPACE, "Container");
         contains = factory.createURI(LDP.NAMESPACE, "contains");
@@ -69,4 +282,8 @@ public class LDP {
         Resource = factory.createURI(LDP.NAMESPACE, "Resource");
     }
 
+    private LDP() {
+        //static access only
+    }
+
 }

Reply via email to