File: data.py

package info (click to toggle)
rdflib 7.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 77,852 kB
  • sloc: python: 59,555; sh: 153; makefile: 83; ruby: 74; xml: 45
file content (42 lines) | stat: -rw-r--r-- 974 bytes parent folder | download | duplicates (2)
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
from pathlib import Path

from rdflib import URIRef
from test.utils.graph import cached_graph

TEST_DIR = Path(__file__).parent
TEST_DATA_DIR = TEST_DIR / "data"

ALICE_URI = URIRef("http://example.org/alice")
BOB_URI = URIRef("http://example.org/bob")

MICHEL = URIRef("urn:example:michel")
TAREK = URIRef("urn:example:tarek")
BOB = URIRef("urn:example:bob")
LIKES = URIRef("urn:example:likes")
HATES = URIRef("urn:example:hates")
PIZZA = URIRef("urn:example:pizza")
CHEESE = URIRef("urn:example:cheese")
CONTEXT0 = URIRef("urn:example:context-0")
CONTEXT1 = URIRef("urn:example:context-1")
CONTEXT2 = URIRef("urn:example:context-2")


SIMPLE_TRIPLE_GRAPH = cached_graph((TEST_DATA_DIR / "variants" / "simple_triple.py",))

__all__ = [
    "TEST_DIR",
    "TEST_DATA_DIR",
    "SIMPLE_TRIPLE_GRAPH",
    "ALICE_URI",
    "BOB_URI",
    "MICHEL",
    "TAREK",
    "BOB",
    "LIKES",
    "HATES",
    "PIZZA",
    "CHEESE",
    "CONTEXT0",
    "CONTEXT1",
    "CONTEXT2",
]