test-ontology.ttl 2.65 KB
Newer Older
1
2
3
4
5
6
@prefix rdf:	<http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs:	<http://www.w3.org/2000/01/rdf-schema#> .
@prefix owl:	<http://www.w3.org/2002/07/owl#> .
@prefix dc:	<http://purl.org/dc/elements/1.1/> .
@prefix skos: 	<http://www.w3.org/2004/02/skos/core#> .
@prefix xsd:	<http://www.w3.org/2001/XMLSchema#> .
7
8
@prefix dwh:	<http://sekmi.de/histream/dwh#> .
@prefix :	<http://sekmi.de/histream/skos/tests#> .
9

R.W.Majeed's avatar
R.W.Majeed committed
10
: dc:title "HIStream concept ontology for testing".
11
12
13
14
15
16
17
18
19
20

:TestScheme a skos:ConceptScheme ;
	skos:hasTopConcept :TestData .

:TestData a skos:Concept ;
	skos:prefLabel "TestData_label_en"@en ;
	skos:prefLabel "TestData_label_de"@de ;
	skos:narrower :TestStringConcept ;
	skos:narrower :TestIntegerConcept ;
	skos:narrower :TestDecimalConcept ;
21
	skos:narrower :TestEnumConcept ;
22
23
24
25
26
	
	dc:description "Top concept for test data" .

:TestEnumConcept a skos:Concept;
	skos:inScheme 	:TestData;
27
28
29
30
31
32
33
	dwh:restriction [ a	owl:Restriction ;
				owl:onProperty rdf:value;
				owl:oneOf (
					[rdf:value "1"^^xsd:string; skos:prefLabel "1_de"@de; skos:prefLabel "1_en"@en ]
					[rdf:value "2"^^xsd:string; skos:prefLabel "2_de"@de; skos:prefLabel "2_en"@en ]
				)
			] ;
34
35
	skos:prefLabel 	"Enum_label_de"@de;
	skos:prefLabel 	"Enum_label_en"@en;
36
	skos:notation 	"T:Enum" .
37
#######	skos:notation 	"Enum"^^:TestCS .
38

39
dwh:Integer a owl:Restriction ;
40
41
	owl:onProperty rdf:value ;
	owl:allValuesFrom xsd:integer .
42
43
44
45
	
dwh:String a owl:Restriction ;
	owl:onProperty rdf:value ;
	owl:allValuesFrom xsd:string .
46

47
48
:TestIntegerConcept a skos:Concept;
	skos:inScheme	:TestData ;
49
	dwh:restriction dwh:Integer ;
50
51
52
53
	skos:prefLabel	"Integer_label_en"@en ;
	skos:prefLabel	"Integer_label_de"@de ;
	dc:description	"Description_de"@de ;
	dc:description	"Description_neutral" ;
54
	skos:notation	"T:type:int" .
55
56
57

:TestStringConcept a skos:Concept;
	skos:inScheme	:TestData ;
58
	dwh:restriction dwh:String ;
59
	skos:prefLabel	"String_label_en"@en ;
60
	skos:notation	"T:type:str" .
61
62
63
	
:TestDecimalConcept a skos:Concept;
	skos:inScheme	:TestData ;
64
65
66
67
68
69
70
71
72
73
	dwh:restriction [ a	owl:Restriction ;
				owl:onProperty	rdf:value ;
				owl:allValuesFrom[	a		rdfs:Datatype; 
							owl:onDatatype	xsd:decimal; 
							owl:withRestrictions( 
									[ xsd:minInclusive 200 ] 	
									[ xsd:maxInclusive 400 ]
							)
						]
			] ;
74
	skos:prefLabel	"Decimal_label_en"@en ;
75
	skos:notation	"T:type:dec" .
76
77
78
79
80
81
82
83
84
85
86
87
88
89

# Test inferred topConcept and narrower
:OtherScheme a skos:ConceptScheme .

:OtherTop a skos:Concept ;
	skos:inScheme	:OtherScheme ;
	skos:topConceptOf	:OtherScheme ;
	skos:prefLabel "OtherTop_label_en"@en .

:OtherSub a skos:Concept ;
	skos:inScheme	:OtherScheme ;
	skos:broader	:OtherTop ;
	skos:prefLabel "OtherSub_label_en"@en ;
	skos:notation	"other" .