Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnamespaces.py
More file actions
Latest commit
62 lines (50 loc) · 1.82 KB
/
Copy pathnamespaces.py
File metadata and controls
62 lines (50 loc) · 1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# ro_namespaces.py
"""
Research Object manifest read, write, decode functions
"""
__author__="Graham Klyne (GK@ACM.ORG)"
__copyright__="Copyright 2011-2013, University of Oxford"
__license__="MIT (http://opensource.org/licenses/MIT)"
#import sys
#import os
#import os.path
#import re
#import urlparse
#import logging
importrdflib
fromrdflib.namespaceimportNamespace, ClosedNamespace
oa=rdflib.URIRef("http://www.w3.org/ns/oa#")
ore=rdflib.URIRef("http://www.openarchives.org/ore/terms/")
foaf=rdflib.URIRef("http://xmlns.com/foaf/0.1/")
ro=rdflib.URIRef("http://purl.org/wf4ever/ro#")
roevo=rdflib.URIRef("http://purl.org/wf4ever/roevo#")
roterms=rdflib.URIRef("http://purl.org/wf4ever/roterms#")
wfprov=rdflib.URIRef("http://purl.org/wf4ever/wfprov#")
wfdesc=rdflib.URIRef("http://purl.org/wf4ever/wfdesc#")
wf4ever=rdflib.URIRef("http://purl.org/wf4ever/wf4ever#")
bundle=rdflib.URIRef("http://purl.org/wf4ever/bundle#")
dcterms=rdflib.URIRef("http://purl.org/dc/terms/")
pav=rdflib.URIRef("http://purl.org/pav/")
BUNDLE=Namespace(bundle)
OA=Namespace(oa)
PAV=Namespace(pav)
RO=ClosedNamespace(ro,
[ "ResearchObject", "AggregatedAnnotation"
, "annotatesAggregatedResource"
])
ROEVO=ClosedNamespace(roevo,
[ "LiveRO","SnapshotRO","ArchivedRO","isFinalized"
])
ORE=ClosedNamespace(ore,
[ "Aggregation", "AggregatedResource", "Proxy"
, "aggregates", "proxyFor", "proxyIn"
, "isDescribedBy"
])
DCTERMS=ClosedNamespace(dcterms,
[ "identifier", "description", "title", "creator", "created"
, "subject", "format", "type"
])
ROTERMS=ClosedNamespace(roterms,
[ "note", "resource", "defaultBase"
])
# End.