-
Notifications
You must be signed in to change notification settings - Fork 0
/
dtou-lang2-reasoning-obligation.n3s
65 lines (56 loc) · 1.27 KB
/
dtou-lang2-reasoning-obligation.n3s
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
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix log: <http://www.w3.org/2000/10/swap/log#>.
@prefix list: <http://www.w3.org/2000/10/swap/list#> .
@prefix : <http://example.org/ns#>.
######
# Reasoning rules
######
# RelatedDataAppInput
(_:usage _:data _:app _:input _:ai _:u) log:onNegativeSurface {
_:usage a :UsageContext;
:app _:ai.
_:ai :policy _:app.
_:app a :AppPolicy;
:input_spec _:input.
_:data a :Data;
:uri _:u.
_:input :data _:u.
() log:onNegativeSurface {
_:m a :RelatedDataAppInput;
:usage _:usage;
:data _:data;
:app _:app;
:input _:input.
}.
}.
# ActivatedObligation
(_:x _:usage _:data _:app _:input _:policy _:obligation _:ob _:args _:ac _:P _:U _:N _:up _:ap _:pp) log:onNegativeSurface {
_:x a :RelatedDataAppInput;
:usage _:usage;
:data _:data;
:app _:app;
:input _:input.
_:uc a :UsageContext;
:app _:ai;
:user _:U.
_:ai :policy _:app.
_:data :policy _:policy.
_:policy :obligation _:obligation.
_:obligation
:obligation_class _:ob;
:argument _:args;
:activation_condition _:ac.
_:ac
:user _:U;
:app _:N;
:purpose3 _:P.
_:app :name _:N.
_:input :purpose2 _:pn1.
_:pn1 :name _:P.
() log:onNegativeSurface {
_:m a :ActivatedObligation;
:purpose4 _:P;
:class _:ob;
:args _:args.
}.
}.