-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOntoBC.ttl
129 lines (106 loc) · 5.42 KB
/
OntoBC.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
@prefix : <http://www.ontologies.makolab.com/bc#> .
@prefix bc: <http://www.ontologies.makolab.com/bc/> .
@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://www.ontologies.makolab.com/bc> .
<http://www.ontologies.makolab.com/bc> rdf:type owl:Ontology .
#################################################################
# Object Properties
#################################################################
### http://www.ontologies.makolab.com/bc/hasPreviousBlock
bc:hasPreviousBlock rdf:type owl:ObjectProperty ,
owl:FunctionalProperty ;
rdfs:domain bc:Block ;
rdfs:range bc:Block .
#################################################################
# Data properties
#################################################################
### http://www.ontologies.makolab.com/bc/hasDataGraphIRI
bc:hasDataGraphIRI rdf:type owl:DatatypeProperty ,
owl:FunctionalProperty ;
rdfs:domain bc:Block ;
rdfs:range xsd:anyURI .
### http://www.ontologies.makolab.com/bc/hasDataHash
bc:hasDataHash rdf:type owl:DatatypeProperty ,
owl:FunctionalProperty ;
rdfs:domain bc:Block ;
rdfs:range xsd:string .
### http://www.ontologies.makolab.com/bc/hasHash
bc:hasHash rdf:type owl:DatatypeProperty ,
owl:FunctionalProperty ;
rdfs:domain bc:Block ;
rdfs:range xsd:string .
### http://www.ontologies.makolab.com/bc/hasIndex
bc:hasIndex rdf:type owl:DatatypeProperty ,
owl:FunctionalProperty ;
rdfs:domain bc:Block ;
rdfs:range xsd:decimal .
### http://www.ontologies.makolab.com/bc/hasPreviousHash
bc:hasPreviousHash rdf:type owl:DatatypeProperty ,
owl:FunctionalProperty ;
rdfs:domain bc:Block ;
rdfs:range xsd:string .
### http://www.ontologies.makolab.com/bc/hasTimeStamp
bc:hasTimeStamp rdf:type owl:DatatypeProperty ,
owl:FunctionalProperty ;
rdfs:domain bc:Block ;
rdfs:range xsd:decimal .
#################################################################
# Classes
#################################################################
### http://www.ontologies.makolab.com/bc/Block
bc:Block rdf:type owl:Class ;
rdfs:subClassOf [ rdf:type owl:Restriction ;
owl:onProperty bc:hasPreviousBlock ;
owl:qualifiedCardinality "1"^^xsd:nonNegativeInteger ;
owl:onClass bc:Block
] ,
[ rdf:type owl:Restriction ;
owl:onProperty bc:hasDataGraphIRI ;
owl:qualifiedCardinality "1"^^xsd:nonNegativeInteger ;
owl:onDataRange xsd:anyURI
] ,
[ rdf:type owl:Restriction ;
owl:onProperty bc:hasDataHash ;
owl:qualifiedCardinality "1"^^xsd:nonNegativeInteger ;
owl:onDataRange xsd:string
] ,
[ rdf:type owl:Restriction ;
owl:onProperty bc:hasHash ;
owl:qualifiedCardinality "1"^^xsd:nonNegativeInteger ;
owl:onDataRange xsd:string
] ,
[ rdf:type owl:Restriction ;
owl:onProperty bc:hasIndex ;
owl:qualifiedCardinality "1"^^xsd:nonNegativeInteger ;
owl:onDataRange xsd:decimal
] ,
[ rdf:type owl:Restriction ;
owl:onProperty bc:hasPreviousHash ;
owl:qualifiedCardinality "1"^^xsd:nonNegativeInteger ;
owl:onDataRange xsd:string
] ,
[ rdf:type owl:Restriction ;
owl:onProperty bc:hasTimeStamp ;
owl:qualifiedCardinality "1"^^xsd:nonNegativeInteger ;
owl:onDataRange xsd:decimal
] .
### http://www.ontologies.makolab.com/bc/GenesisBlock
bc:GenesisBlock rdf:type owl:Class ;
rdfs:subClassOf bc:Block ,
[ rdf:type owl:Restriction ;
owl:onProperty bc:hasPreviousBlock ;
owl:allValuesFrom bc:GenesisBlock
] ,
[ rdf:type owl:Restriction ;
owl:onProperty bc:hasDataGraphIRI ;
owl:hasValue "http://www.ontologies.makolab.com/bc"^^xsd:anyURI
] ,
[ rdf:type owl:Restriction ;
owl:onProperty bc:hasIndex ;
owl:hasValue 0
] .
### Generated by the OWL API (version 4.2.8.20170104-2310) https://github.com/owlcs/owlapi