-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdomain.ttl
More file actions
67 lines (60 loc) · 2.36 KB
/
Copy pathdomain.ttl
File metadata and controls
67 lines (60 loc) · 2.36 KB
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
@base <http://atomgraph.com/blog/domain> .
@prefix : <#> .
@prefix ac: <http://atomgraph.com/ns/client#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix ldt: <https://www.w3.org/ns/ldt#> .
@prefix ct: <https://www.w3.org/ns/ldt/core/templates#> .
@prefix dh: <https://www.w3.org/ns/ldt/document-hierarchy/domain#> .
@prefix sd: <http://www.w3.org/ns/sparql-service-description#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix void: <http://rdfs.org/ns/void#> .
@prefix sioc: <http://rdfs.org/sioc/ns#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
: a owl:Ontology ;
owl:imports dh:, sioc:, skos:, foaf: ;
rdfs:label "Blog ontology" ;
dct:created "2014-10-21T01:53:00+01:00"^^xsd:dateTime .
# CLASSES
:Post a rdfs:Class, owl:Class ;
rdfs:subClassOf sioc:Post, dh:Item ;
spin:constructor
[ a sp:Construct ;
sp:text """
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX sioc: <http://rdfs.org/sioc/ns#>
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
CONSTRUCT {
?this dct:title [ a xsd:string ] ;
sioc:content [ a xsd:string ] ;
dct:subject [ a skos:Concept ] .
}
WHERE {}"""
] ;
rdfs:label "Post" ;
rdfs:isDefinedBy : .
:Category a rdfs:Class, owl:Class ;
rdfs:subClassOf skos:Concept,
[ a owl:Restriction ;
owl:onProperty foaf:isPrimaryTopicOf ;
owl:allValuesFrom dh:Item
] ;
ldt:segment "{isPrimaryTopicOf.slug}" ;
spin:constructor
[ a sp:Construct ;
sp:text """
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
CONSTRUCT {
?this skos:prefLabel [ a xsd:string ] .
}
WHERE {}"""
] ;
rdfs:label "Category" ;
rdfs:isDefinedBy : .