|
1 |
| |
|
2 |
| package photospace.meta.rdf; |
|
3 |
| import com.hp.hpl.jena.rdf.model.*; |
|
4 |
| |
|
5 |
| |
|
6 |
| |
|
7 |
| |
|
8 |
| |
|
9 |
| public class CCVocab { |
|
10 |
| |
|
11 |
| private static Model m_model = ModelFactory.createDefaultModel(); |
|
12 |
| |
|
13 |
| |
|
14 |
| public static final String NS = "http://web.resource.org/cc/"; |
|
15 |
| |
|
16 |
| |
|
17 |
| |
|
18 |
0
| public static String getURI() {return NS;}
|
|
19 |
| |
|
20 |
| |
|
21 |
| public static final Resource NAMESPACE = m_model.createResource( NS ); |
|
22 |
| |
|
23 |
| public static final Property REQUIRES = m_model.createProperty( "http://web.resource.org/cc/requires" ); |
|
24 |
| |
|
25 |
| public static final Property PERMITS = m_model.createProperty( "http://web.resource.org/cc/permits" ); |
|
26 |
| |
|
27 |
| public static final Property LICENSE = m_model.createProperty( "http://web.resource.org/cc/license" ); |
|
28 |
| |
|
29 |
| public static final Property DERIVATIVE_WORK = m_model.createProperty( "http://web.resource.org/cc/derivativeWork" ); |
|
30 |
| |
|
31 |
| public static final Property PROHIBITS = m_model.createProperty( "http://web.resource.org/cc/prohibits" ); |
|
32 |
| |
|
33 |
| public static final Resource PROHIBITION = m_model.createResource( "http://web.resource.org/cc/Prohibition" ); |
|
34 |
| |
|
35 |
| public static final Resource PERMISSION = m_model.createResource( "http://web.resource.org/cc/Permission" ); |
|
36 |
| |
|
37 |
| public static final Resource WORK = m_model.createResource( "http://web.resource.org/cc/Work" ); |
|
38 |
| |
|
39 |
| public static final Resource LICENSE_CLASS = m_model.createResource( "http://web.resource.org/cc/License" ); |
|
40 |
| |
|
41 |
| public static final Resource REQUIREMENT = m_model.createResource( "http://web.resource.org/cc/Requirement" ); |
|
42 |
| |
|
43 |
| public static final Resource AGENT = m_model.createResource( "http://web.resource.org/cc/Agent" ); |
|
44 |
| |
|
45 |
| public static final Resource ATTRIBUTION = m_model.createResource( "http://web.resource.org/cc/Attribution" ); |
|
46 |
| |
|
47 |
| public static final Resource SHARE_ALIKE = m_model.createResource( "http://web.resource.org/cc/ShareAlike" ); |
|
48 |
| |
|
49 |
| public static final Resource REPRODUCTION = m_model.createResource( "http://web.resource.org/cc/Reproduction" ); |
|
50 |
| |
|
51 |
| public static final Resource DERIVATIVE_WORKS = m_model.createResource( "http://web.resource.org/cc/DerivativeWorks" ); |
|
52 |
| |
|
53 |
| public static final Resource COMMERCIAL_USE = m_model.createResource( "http://web.resource.org/cc/CommercialUse" ); |
|
54 |
| |
|
55 |
| public static final Resource SOURCE_CODE = m_model.createResource( "http://web.resource.org/cc/SourceCode" ); |
|
56 |
| |
|
57 |
| public static final Resource DISTRIBUTION = m_model.createResource( "http://web.resource.org/cc/Distribution" ); |
|
58 |
| |
|
59 |
| public static final Resource NOTICE = m_model.createResource( "http://web.resource.org/cc/Notice" ); |
|
60 |
| |
|
61 |
| public static final Resource PUBLIC_DOMAIN = m_model.createResource( "http://web.resource.org/cc/PublicDomain" ); |
|
62 |
| |
|
63 |
| } |