-
Notifications
You must be signed in to change notification settings - Fork 2
/
codegraph_ontology.ttl
165 lines (125 loc) · 10.3 KB
/
codegraph_ontology.ttl
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
@prefix : <http://purl.org/twc/graph4code/ontology/> .
@prefix py: <urn:python/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@base <http://purl.org/twc/graph4code/ontology> .
<http://purl.org/twc/graph4code/ontology> rdf:type owl:Ontology ;
owl:versionIRI : ;
owl:imports <http://semanticscience.org/ontology/sio.owl> .
#################################################################
# Annotation properties
#################################################################
### http://www.w3.org/2004/02/skos/core#altLabel
<http://www.w3.org/2004/02/skos/core#altLabel> rdf:type owl:AnnotationProperty .
### http://www.w3.org/2004/02/skos/core#definition
<http://www.w3.org/2004/02/skos/core#definition> rdf:type owl:AnnotationProperty .
### http://www.w3.org/2004/02/skos/core#notation
<http://www.w3.org/2004/02/skos/core#notation> rdf:type owl:AnnotationProperty .
### http://www.w3.org/2004/02/skos/core#prefLabel
<http://www.w3.org/2004/02/skos/core#prefLabel> rdf:type owl:AnnotationProperty .
#################################################################
# Classes
#################################################################
### http://purl.org/twc/graph4code/Argument
<http://purl.org/twc/graph4code/Argument> rdf:type owl:Class ;
rdfs:subClassOf <http://semanticscience.org/resource/SIO_000016> .
### http://purl.org/twc/graph4code/Class
<http://purl.org/twc/graph4code/Class> rdf:type owl:Class ;
rdfs:subClassOf <http://semanticscience.org/resource/SIO_000602> .
### http://purl.org/twc/graph4code/Constant
<http://purl.org/twc/graph4code/Constant> rdf:type owl:Class ;
rdfs:subClassOf <http://purl.org/twc/graph4code/Object> .
### http://purl.org/twc/graph4code/Function
<http://purl.org/twc/graph4code/Function> rdf:type owl:Class ;
rdfs:subClassOf <http://semanticscience.org/resource/SIO_000602> .
### http://purl.org/twc/graph4code/NamedArgument
<http://purl.org/twc/graph4code/NamedArgument> rdf:type owl:Class ;
owl:equivalentClass [ owl:intersectionOf ( <http://purl.org/twc/graph4code/Argument>
[ rdf:type owl:Restriction ;
owl:onProperty <http://semanticscience.org/resource/SIO_000300> ;
owl:allValuesFrom xsd:string
]
) ;
rdf:type owl:Class
] ;
rdfs:subClassOf <http://purl.org/twc/graph4code/Argument> ;
rdfs:label "Named Argument" .
### http://purl.org/twc/graph4code/Object
<http://purl.org/twc/graph4code/Object> rdf:type owl:Class ;
rdfs:subClassOf <http://semanticscience.org/resource/SIO_000602> .
### http://purl.org/twc/graph4code/PositionalArgument
<http://purl.org/twc/graph4code/PositionalArgument> rdf:type owl:Class ;
owl:equivalentClass [ owl:intersectionOf ( <http://purl.org/twc/graph4code/Argument>
[ rdf:type owl:Restriction ;
owl:onProperty <http://semanticscience.org/resource/SIO_000300> ;
owl:allValuesFrom xsd:integer
]
) ;
rdf:type owl:Class
] ;
rdfs:subClassOf <http://purl.org/twc/graph4code/Argument> ;
rdfs:label "Positional Argument" .
### http://purl.org/twc/graph4code/python/bytes
<http://purl.org/twc/graph4code/python/bytes> rdf:type owl:Class ;
rdfs:subClassOf <http://purl.org/twc/graph4code/Constant> ,
<http://purl.org/twc/graph4code/python/object> ;
rdfs:label "Byte Array" ;
<http://www.w3.org/2004/02/skos/core#notation> "bytes" .
### http://purl.org/twc/graph4code/python/float
<http://purl.org/twc/graph4code/python/float> rdf:type owl:Class ;
owl:equivalentClass [ owl:intersectionOf ( <http://purl.org/twc/graph4code/python/object>
[ rdf:type owl:Restriction ;
owl:onProperty <http://semanticscience.org/resource/SIO_000300> ;
owl:allValuesFrom xsd:decimal
]
) ;
rdf:type owl:Class
] ;
rdfs:subClassOf <http://purl.org/twc/graph4code/Constant> ,
<http://purl.org/twc/graph4code/python/object> ;
rdfs:label "Floating Point Number" ;
<http://www.w3.org/2004/02/skos/core#notation> "float" .
### http://purl.org/twc/graph4code/python/int
<http://purl.org/twc/graph4code/python/int> rdf:type owl:Class ;
owl:equivalentClass [ owl:intersectionOf ( <http://purl.org/twc/graph4code/python/object>
[ rdf:type owl:Restriction ;
owl:onProperty <http://semanticscience.org/resource/SIO_000300> ;
owl:allValuesFrom xsd:integer
]
) ;
rdf:type owl:Class
] ;
rdfs:subClassOf <http://purl.org/twc/graph4code/Constant> ,
<http://purl.org/twc/graph4code/python/object> ;
rdfs:label "Integer" ;
<http://www.w3.org/2004/02/skos/core#notation> "int" .
### http://purl.org/twc/graph4code/python/object
<http://purl.org/twc/graph4code/python/object> rdf:type owl:Class ;
rdfs:subClassOf <http://purl.org/twc/graph4code/Object> ;
rdfs:label "Python Object" ;
<http://www.w3.org/2004/02/skos/core#altLabel> "builtins.object" ;
<http://www.w3.org/2004/02/skos/core#notation> "object" .
### http://purl.org/twc/graph4code/python/str
<http://purl.org/twc/graph4code/python/str> rdf:type owl:Class ;
owl:equivalentClass [ owl:intersectionOf ( <http://purl.org/twc/graph4code/python/object>
[ rdf:type owl:Restriction ;
owl:onProperty <http://semanticscience.org/resource/SIO_000300> ;
owl:allValuesFrom xsd:string
]
) ;
rdf:type owl:Class
] ;
rdfs:subClassOf <http://purl.org/twc/graph4code/Constant> ,
<http://purl.org/twc/graph4code/python/object> ;
rdfs:label "String" ;
<http://www.w3.org/2004/02/skos/core#notation> "str" .
### http://schema.org/SoftwareSourceCode
<http://schema.org/SoftwareSourceCode> rdf:type owl:Class ;
rdfs:subClassOf <http://semanticscience.org/resource/SIO_000602> ;
rdfs:label "Source Code" .
### http://semanticscience.org/resource/SIO_000602
<http://semanticscience.org/resource/SIO_000602> rdf:type owl:Class .
### Generated by the OWL API (version 4.2.8.20170104-2310) https://github.com/owlcs/owlapi