Skip to content

Method: RDF()

1: /*
2: * JOPA
3: * Copyright (C) 2024 Czech Technical University in Prague
4: *
5: * This library is free software; you can redistribute it and/or
6: * modify it under the terms of the GNU Lesser General Public
7: * License as published by the Free Software Foundation; either
8: * version 3.0 of the License, or (at your option) any later version.
9: *
10: * This library is distributed in the hope that it will be useful,
11: * but WITHOUT ANY WARRANTY; without even the implied warranty of
12: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13: * Lesser General Public License for more details.
14: *
15: * You should have received a copy of the GNU Lesser General Public
16: * License along with this library.
17: */
18: package cz.cvut.kbss.jopa.vocabulary;
19:
20: /**
21: * A subset of the RDF vocabulary.
22: */
23: public final class RDF {
24:
25: /**
26: * RDF vocabulary namespace.
27: */
28: public static final String NAMESPACE = "http://www.w3.org/1999/02/22-rdf-syntax-ns#";
29:
30: /**
31: * Typical prefix used for {@link #NAMESPACE}.
32: */
33: public static final String PREFIX = "rdf";
34:
35: /**
36: * The {@code rdf:type} property indicates that a resource is a member of a class.
37: */
38: public static final String TYPE = NAMESPACE + "type";
39:
40: /**
41: * The {@code rdf:value} property identifies the principal value (usually a string) of a property when the property
42: * value is a structured resource.
43: */
44: public static final String VALUE = NAMESPACE + "value";
45:
46: /**
47: * The {@code rdf:Statement} class represents statements about the properties of resources.
48: *
49: * @see #SUBJECT
50: * @see #PREDICATE
51: * @see #OBJECT
52: */
53: public static final String STATEMENT = NAMESPACE + "Statement";
54:
55: /**
56: * The subject of an RDF statement.
57: */
58: public static final String SUBJECT = NAMESPACE + "subject";
59:
60: /**
61: * The predicate of an RDF statement.
62: */
63: public static final String PREDICATE = NAMESPACE + "predicate";
64:
65: /**
66: * The predicate of an RDF statement.
67: */
68: public static final String OBJECT = NAMESPACE + "object";
69:
70: /**
71: * {@code rdf:Property} represents those resources that are RDF properties.
72: */
73: public static final String PROPERTY = NAMESPACE + "Property";
74:
75: /**
76: * The class {@code rdf:langString} representing language-tagged string values.
77: */
78: public static final String LANG_STRING = NAMESPACE + "langString";
79:
80: /**
81: * The {@code rdf:List} class representing (linked) lists in RDF.
82: */
83: public static final String LIST = NAMESPACE + "List";
84:
85: /**
86: * The {@code rdf:first} property for RDF list elements (values).
87: */
88: public static final String FIRST = NAMESPACE + "first";
89:
90: /**
91: * The {@code rdf:rest} property for linking RDF list elements.
92: */
93: public static final String REST = NAMESPACE + "rest";
94:
95: /**
96: * The {@code rdf:nil} object representing an empty RDF list (used to mark the end of a RDF list).
97: */
98: public static final String NIL = NAMESPACE + "nil";
99:
100: private RDF() {
101: throw new AssertionError();
102: }
103: }