Repository: marmotta Updated Branches: refs/heads/ldp 310d7923e -> 16bd00090
MARMOTTA-440: Added Vocabulary for LDP, kudos to tkurz MARMOTTA-434: fixed jrebel config for marmotta-commons Project: http://git-wip-us.apache.org/repos/asf/marmotta/repo Commit: http://git-wip-us.apache.org/repos/asf/marmotta/commit/aad87eff Tree: http://git-wip-us.apache.org/repos/asf/marmotta/tree/aad87eff Diff: http://git-wip-us.apache.org/repos/asf/marmotta/diff/aad87eff Branch: refs/heads/ldp Commit: aad87eff7cbae54a9cc7e736e404e5f5420aa699 Parents: 310d792 Author: Jakob Frank <[email protected]> Authored: Tue Feb 18 11:50:09 2014 +0100 Committer: Jakob Frank <[email protected]> Committed: Tue Feb 18 11:50:09 2014 +0100 ---------------------------------------------------------------------- commons/marmotta-commons/pom.xml | 7 ++ .../apache/marmotta/commons/vocabulary/LDP.java | 115 +++++++++++++++++++ 2 files changed, 122 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/marmotta/blob/aad87eff/commons/marmotta-commons/pom.xml ---------------------------------------------------------------------- diff --git a/commons/marmotta-commons/pom.xml b/commons/marmotta-commons/pom.xml index 5765db4..f726492 100644 --- a/commons/marmotta-commons/pom.xml +++ b/commons/marmotta-commons/pom.xml @@ -62,6 +62,13 @@ </execution> </executions> </plugin> + <plugin> <!-- generate JRebel Configuration --> + <groupId>org.zeroturnaround</groupId> + <artifactId>jrebel-maven-plugin</artifactId> + <configuration> + <relativePath>../../</relativePath> + </configuration> + </plugin> <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> http://git-wip-us.apache.org/repos/asf/marmotta/blob/aad87eff/commons/marmotta-commons/src/main/java/org/apache/marmotta/commons/vocabulary/LDP.java ---------------------------------------------------------------------- diff --git a/commons/marmotta-commons/src/main/java/org/apache/marmotta/commons/vocabulary/LDP.java b/commons/marmotta-commons/src/main/java/org/apache/marmotta/commons/vocabulary/LDP.java new file mode 100644 index 0000000..d10cdd1 --- /dev/null +++ b/commons/marmotta-commons/src/main/java/org/apache/marmotta/commons/vocabulary/LDP.java @@ -0,0 +1,115 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You 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.apache.marmotta.commons.vocabulary; + +import org.openrdf.model.URI; +import org.openrdf.model.ValueFactory; +import org.openrdf.model.impl.ValueFactoryImpl; + +/** + * Namespace LDP + */ +public class LDP { + + public static final String NAMESPACE = "http://www.w3.org/ns/ldp#"; + + public static final String PREFIX = "ldp"; + + /** + * A Linked Data Platform Container (LDPC) that also conforms to + * additional patterns and conventions for managing members. It is distinguished from + * CompositeContainer by the following behaviors: + * <ol> + * <li>Clients cannot assume that an AggregateContainer, when deleted, deletes its members. + * </ol> + * + * While every attempt is made to be complete in this list, readers should also refer + * to the specification defining this ontology. + */ + public static final URI AggregateContainer; + + /** + * A Linked Data Platform Container (LDPC) that also conforms to + * additional patterns and conventions for managing members. It is distinguished from + * AggregateContainer by the following behaviors: + * <ol> + * <li>An CompositeContainer, when deleted, must delete all its members. + * </ol> + * + * While every attempt is made to be complete in this list, readers should also + * refer to the specification defining this ontology. + */ + public static final URI CompositeContainer; + + /** + * A Linked Data Platform Resource (LDPR) 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. + */ + public static final URI Container; + + /** + * A resource that represents a limited set of members of a LDP Container. + */ + public static final URI Page; + + /** + * A HTTP-addressable resource with a linked data representation. + */ + public static final URI Resource; + + /** + * List of predicates that indicate the ascending order of the members in a page. + */ + public static final URI containerSortPredicates; + + /** + * Indicates which predicate of the container should be used to determine the membership. + */ + public static final URI membershipPredicate; + + /** + * Indicates which resource is the subject for the members of the container. + */ + public static final URI membershipSubject; + + /** + * From a known page, how to indicate the next or last page as rdf:nil. + */ + public static final URI nextPage; + + /** + * Associated a page with its container. + */ + public static final URI pageOf; + + + static{ + ValueFactory factory = ValueFactoryImpl.getInstance(); + AggregateContainer = factory.createURI(LDP.NAMESPACE, "AggregateContainer"); + CompositeContainer = factory.createURI(LDP.NAMESPACE, "CompositeContainer"); + Container = factory.createURI(LDP.NAMESPACE, "Container"); + Page = factory.createURI(LDP.NAMESPACE, "Page"); + Resource = factory.createURI(LDP.NAMESPACE, "Resource"); + containerSortPredicates = factory.createURI(LDP.NAMESPACE, "containerSortPredicates"); + membershipPredicate = factory.createURI(LDP.NAMESPACE, "membershipPredicate"); + membershipSubject = factory.createURI(LDP.NAMESPACE, "membershipSubject"); + nextPage = factory.createURI(LDP.NAMESPACE, "nextPage"); + pageOf = factory.createURI(LDP.NAMESPACE, "pageOf"); + } +}
