-
Notifications
You must be signed in to change notification settings - Fork 1
/
schema.pgs
52 lines (44 loc) · 1.32 KB
/
schema.pgs
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
'''
# Ontology Graph
A property graph for ontologies based on OBO/OWL ontology structures.
'''
(:Ontology {id})
'''The root of the ontology'''
.id = 'an identifier for the ontology in the graph'
.data-version = 'a version string'
.date = datetime 'the creation date of the ontology'
.default-namespace = 'the default namespace to use for the ontology'
.format-version = 'the input format version'
.ontology = 'the identifier for the ontology which may be the same as the id'
.remark = 'a comment'
.saved-by = 'an identification of the process that generated the format'
-[:subsetdef]->(:Subset) = '''
A subset of the ontology. Terms identify themselves as member of a subset.
'''
-[:term]->(:Term) = 'a term belonging to the ontology'
-[:typedef]->(:Typedef) = 'a type definition belonging to the ontology'
(:Term {id})
.id = 'an identifier for the term in the graph. This is often the same as `name`'
.name = 'the term identifier in the ontology'
.comment
.created_by
.creation_date
.def
.is_obsolete
-[:alias]->(:Term)
-[:def]->(:Resource)
-[:subset]->(:Subset)
-[:synonym]->(:XRef)
-[:xref]->(:XRef)
-[:is_a]->(:Term)
-[:disjoint_from]->(:Term)
(:Typedef {id})
.name
.def
-[:def]->(:Resource)
(:Resource {url})
(:Subset {id})
.description
(:XRef {id})
.relation
.related