001package org.w3.ldp.testsuite.vocab;
002
003import org.openrdf.model.URI;
004import org.openrdf.model.ValueFactory;
005import org.openrdf.model.impl.ValueFactoryImpl;
006
007/**
008 * W3C Linked Data Platform (LDP).
009 * <p>
010 * This ontology provides an informal representation of the concepts and
011 * terms as defined in the LDP specification. Consult the LDP
012 * specification for normative reference..
013 * </p>
014 * Namespace Ldp.
015 * Prefix: {@code <http://www.w3.org/ns/ldp#>}
016 *
017 * @see <a href="http://www.w3.org/2012/ldp">http://www.w3.org/2012/ldp</a>
018 * @see <a href="http://www.w3.org/TR/ldp-ucr/">http://www.w3.org/TR/ldp-ucr/</a>
019 * @see <a href="http://www.w3.org/TR/ldp/">http://www.w3.org/TR/ldp/</a>
020 * @see <a href="http://www.w3.org/2011/09/LinkedData/">http://www.w3.org/2011/09/LinkedData/</a>
021 */
022public class LDP {
023
024        /**
025         * {@code http://www.w3.org/ns/ldp#} *
026         */
027        public static final String NAMESPACE = "http://www.w3.org/ns/ldp#";
028
029        /**
030         * {@code ldp} *
031         */
032        public static final String PREFIX = "ldp";
033
034        public static final String LDPT_PREFIX = "ldpt";
035        public static final String LDPT_NAMESPACE = "http://w3c.github.io/ldp-testsuite/manifest#";
036        
037        /**
038         * BasicContainer
039         * <p>
040         * {@code http://www.w3.org/ns/ldp#BasicContainer}.
041         * </p>
042         * An LDPC that uses a predefined predicate to simply link to its
043         * contained resources.
044         *
045         * @see <a href="http://www.w3.org/ns/ldp#BasicContainer">BasicContainer</a>
046         */
047        public static final URI BasicContainer;
048
049        /**
050         * Container
051         * <p>
052         * {@code http://www.w3.org/ns/ldp#Container}.
053         * </p>
054         * A Linked Data Platform RDF Source (LDP-RS) that also conforms to
055         * additional patterns and conventions for managing membership. Readers
056         * should refer to the specification defining this ontology for the list
057         * of behaviors associated with it.
058         *
059         * @see <a href="http://www.w3.org/ns/ldp#Container">Container</a>
060         */
061        public static final URI Container;
062
063        /**
064         * contains
065         * <p>
066         * {@code http://www.w3.org/ns/ldp#contains}.
067         * </p>
068         * Links a container with resources created through the container.
069         *
070         * @see <a href="http://www.w3.org/ns/ldp#contains">contains</a>
071         */
072        public static final URI contains;
073
074        /**
075         * DirectContainer
076         * <p>
077         * {@code http://www.w3.org/ns/ldp#DirectContainer}.
078         * </p>
079         * An LDPC that is similar to a LDP-DC but it allows an indirection with
080         * the ability to list as member a resource, such as a URI representing a
081         * real-world object, that is different from the resource that is created
082         *
083         * @see <a href="http://www.w3.org/ns/ldp#DirectContainer">DirectContainer</a>
084         */
085        public static final URI DirectContainer;
086
087        /**
088         * hasMemberRelation
089         * <p>
090         * {@code http://www.w3.org/ns/ldp#hasMemberRelation}.
091         * </p>
092         * Indicates which predicate is used in membership triples, and that the
093         * membership triple pattern is &lt; membership-constant-URI ,
094         * object-of-hasMemberRelation, member-URI &gt;.
095         *
096         * @see <a href="http://www.w3.org/ns/ldp#hasMemberRelation">hasMemberRelation</a>
097         */
098        public static final URI hasMemberRelation;
099
100        /**
101         * IndirectContainer
102         * <p>
103         * {@code http://www.w3.org/ns/ldp#IndirectContainer}.
104         * </p>
105         * An LDPC that has the flexibility of choosing what form the membership
106         * triples take.
107         *
108         * @see <a href="http://www.w3.org/ns/ldp#IndirectContainer">IndirectContainer</a>
109         */
110        public static final URI IndirectContainer;
111
112        /**
113         * insertedContentRelation
114         * <p>
115         * {@code http://www.w3.org/ns/ldp#insertedContentRelation}.
116         * </p>
117         * Indicates which triple in a creation request should be used as the
118         * member-URI value in the membership triple added when the creation
119         * request is successful.
120         *
121         * @see <a href="http://www.w3.org/ns/ldp#insertedContentRelation">insertedContentRelation</a>
122         */
123        public static final URI insertedContentRelation;
124
125        /**
126         * isMemberOfRelation
127         * <p>
128         * {@code http://www.w3.org/ns/ldp#isMemberOfRelation}.
129         * </p>
130         * Indicates which predicate is used in membership triples, and that the
131         * membership triple pattern is &lt; member-URI ,
132         * object-of-isMemberOfRelation, membership-constant-URI &gt;.
133         *
134         * @see <a href="http://www.w3.org/ns/ldp#isMemberOfRelation">isMemberOfRelation</a>
135         */
136        public static final URI isMemberOfRelation;
137
138        /**
139         * member
140         * <p>
141         * {@code http://www.w3.org/ns/ldp#member}.
142         * </p>
143         * LDP servers should use this predicate as the membership predicate if
144         * there is no obvious predicate from an application vocabulary to use.
145         *
146         * @see <a href="http://www.w3.org/ns/ldp#member">member</a>
147         */
148        public static final URI member;
149
150        /**
151         * membershipResource
152         * <p>
153         * {@code http://www.w3.org/ns/ldp#membershipResource}.
154         * </p>
155         * Indicates the membership-constant-URI in a membership triple.
156         * Depending upon the membership triple pattern a container uses, as
157         * indicated by the presence of ldp:hasMemberRelation or
158         * ldp:isMemberOfRelation, the membership-constant-URI might occupy
159         * either the subject or object position in membership triples.
160         *
161         * @see <a href="http://www.w3.org/ns/ldp#membershipResource">membershipResource</a>
162         */
163        public static final URI membershipResource;
164
165        /**
166         * MemberSubject
167         * <p>
168         * {@code http://www.w3.org/ns/ldp#MemberSubject}.
169         * </p>
170         * Used to indicate default and typical behavior for
171         * ldp:insertedContentRelation, where the member-URI value in the
172         * membership triple added when a creation request is successful is the
173         * URI assigned to the newly created resource.
174         *
175         * @see <a href="http://www.w3.org/ns/ldp#MemberSubject">MemberSubject</a>
176         */
177        public static final URI MemberSubject;
178
179        /**
180         * NonRDFSource
181         * <p>
182         * {@code http://www.w3.org/ns/ldp#NonRDFSource}.
183         * </p>
184         * A Linked Data Platform Resource (LDPR) whose state is NOT represented
185         * as RDF.
186         *
187         * @see <a href="http://www.w3.org/ns/ldp#NonRDFSource">NonRDFSource</a>
188         */
189        public static final URI NonRDFSource;
190
191        /**
192         * PreferContainment
193         * <p>
194         * {@code http://www.w3.org/ns/ldp#PreferContainment}.
195         * </p>
196         * URI identifying a LDPC's containment triples, for example to allow
197         * clients to express interest in receiving them.
198         *
199         * @see <a href="http://www.w3.org/ns/ldp#PreferContainment">PreferContainment</a>
200         */
201        public static final URI PreferContainment;
202
203        /**
204         * PreferEmptyContainer
205         * <p>
206         * {@code http://www.w3.org/ns/ldp#PreferEmptyContainer}.
207         * </p>
208         * URI identifying the subset of a LDPC's triples present in an empty
209         * LDPC, for example to allow clients to express interest in receiving
210         * them. Currently this excludes containment and membership triples, but
211         * in the future other exclusions might be added. This definition is
212         * written to automatically exclude those new classes of triples.
213         *
214         * @see <a href="http://www.w3.org/ns/ldp#PreferEmptyContainer">PreferEmptyContainer</a>
215         */
216        public static final URI PreferEmptyContainer;
217
218        /**
219         * PreferMembership
220         * <p>
221         * {@code http://www.w3.org/ns/ldp#PreferMembership}.
222         * </p>
223         * URI identifying a LDPC's membership triples, for example to allow
224         * clients to express interest in receiving them.
225         *
226         * @see <a href="http://www.w3.org/ns/ldp#PreferMembership">PreferMembership</a>
227         */
228        public static final URI PreferMembership;
229
230        /**
231         * RDFSource
232         * <p>
233         * {@code http://www.w3.org/ns/ldp#RDFSource}.
234         * </p>
235         * A Linked Data Platform Resource (LDPR) whose state is represented as
236         * RDF.
237         *
238         * @see <a href="http://www.w3.org/ns/ldp#RDFSource">RDFSource</a>
239         */
240        public static final URI RDFSource;
241
242        /**
243         * Resource
244         * <p>
245         * {@code http://www.w3.org/ns/ldp#Resource}.
246         * </p>
247         * A HTTP-addressable resource whose lifecycle is managed by a LDP
248         * server.
249         *
250         * @see <a href="http://www.w3.org/ns/ldp#Resource">Resource</a>
251         */
252        public static final URI Resource;
253
254        static {
255                ValueFactory factory = ValueFactoryImpl.getInstance();
256
257                BasicContainer = factory.createURI(LDP.NAMESPACE, "BasicContainer");
258                Container = factory.createURI(LDP.NAMESPACE, "Container");
259                contains = factory.createURI(LDP.NAMESPACE, "contains");
260                DirectContainer = factory.createURI(LDP.NAMESPACE, "DirectContainer");
261                hasMemberRelation = factory.createURI(LDP.NAMESPACE, "hasMemberRelation");
262                IndirectContainer = factory.createURI(LDP.NAMESPACE, "IndirectContainer");
263                insertedContentRelation = factory.createURI(LDP.NAMESPACE, "insertedContentRelation");
264                isMemberOfRelation = factory.createURI(LDP.NAMESPACE, "isMemberOfRelation");
265                member = factory.createURI(LDP.NAMESPACE, "member");
266                membershipResource = factory.createURI(LDP.NAMESPACE, "membershipResource");
267                MemberSubject = factory.createURI(LDP.NAMESPACE, "MemberSubject");
268                NonRDFSource = factory.createURI(LDP.NAMESPACE, "NonRDFSource");
269                PreferContainment = factory.createURI(LDP.NAMESPACE, "PreferContainment");
270                PreferEmptyContainer = factory.createURI(LDP.NAMESPACE, "PreferEmptyContainer");
271                PreferMembership = factory.createURI(LDP.NAMESPACE, "PreferMembership");
272                RDFSource = factory.createURI(LDP.NAMESPACE, "RDFSource");
273                Resource = factory.createURI(LDP.NAMESPACE, "Resource");
274        }
275
276        private LDP() {
277                //static access only
278        }
279
280}