-
Notifications
You must be signed in to change notification settings - Fork 4
/
updatescript.sms.ttl
45 lines (40 loc) · 1.47 KB
/
updatescript.sms.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
# baseURI: http://onto.fel.cvut.cz/ontologies/s-pipes/update-script
# imports: http://onto.fel.cvut.cz/ontologies/s-pipes-lib
@prefix : <http://onto.fel.cvut.cz/ontologies/s-pipes/update-script/> .
@prefix doc: <http://onto.fel.cvut.cz/ontologies/documentation/> .
@prefix kbss: <http://onto.fel.cvut.cz/ontologies/lib/module/> .
@prefix km-sesame: <http://onto.fel.cvut.cz/ontologies/lib/module/sesame/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sm: <http://topbraid.org/sparqlmotion#> .
@prefix sml: <http://topbraid.org/sparqlmotionlib#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spif: <http://spinrdf.org/spif#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://onto.fel.cvut.cz/ontologies/s-pipes/update-script>
a owl:Ontology ;
owl:imports <http://onto.fel.cvut.cz/ontologies/s-pipes-lib> ;
.
:update
a kbss:rdf4j-update ;
sml:updateQuery [
a sp:Update ;
sp:text """
INSERT DATA {
<http://example.org/people/john> <http://example.org/ontology/name> "John" .
}
""" ;
];
rdfs:label "Make insert update" ;
.
:func2_Return
a sml:ReturnRDF ;
sml:serialization sml:JSONLD ;
rdfs:label "Return data".
:func2
a sm:Function ;
sm:returnModule :func2_Return ;
rdfs:subClassOf sm:Functions .