-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
43 lines (35 loc) · 1017 Bytes
/
config.py
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
import os
from pathlib import Path
from rdflib.namespace import Namespace, RDF, RDFS, OWL, XSD
from rdflib.namespace import SKOS, DOAP, FOAF, DC, DCTERMS
DEBUG = True
BASE_DIR = Path(os.path.abspath(os.path.dirname(__file__)))
SECRET_KEY = os.urandom(64)
# Prefixes and namespaces to use.
NAMESPACES = dict(
rdf=RDF,
rdfs=RDFS,
owl=OWL,
xsd=XSD,
skos=SKOS,
doap=DOAP,
foaf=FOAF,
dc=DC,
dcterms=DCTERMS,
swivt=Namespace("http://semantic-mediawiki.org/swivt/1.0#"),
geonames=Namespace("https://www.geonames.org/ontology#"),
dbo=Namespace("http://dbpedia.org/resource/"),
dbp=Namespace("http://dbpedia.org/ontology/"),
kb=Namespace("http://www.semanticweb.org/andrea/ontologies/2021/4/Musei#"),
)
# Path to Directory containing RDF data.
RDF_DIR = BASE_DIR.joinpath("rdf")
# URLs from which to download RDF data.
url1 = "http://dbpedia.org/resource/"
RDF_URLS = []
PARSERS = {
".rdf": "xml",
".n3": "n3",
".ttl": "turtle",
".xml": "xml",
}