-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSPARQL.txt
42 lines (33 loc) · 1.2 KB
/
SPARQL.txt
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
# Engine
http://sparql.org/sparql.html
https://raw.githubusercontent.com/nadhifikbarw/linked-data-uu-ite/master/datagraph.ttl
1. Mencari ayat serta subayat yang masih berlaku. Subayat merupakan amandemen dari ayat.
PREFIX schema: <http://schema.org/>
PREFIX uuite: <http://linked-data-uu-ite.netlify.app/datagraph.ttl#>
SELECT ?id ?text
WHERE {
VALUES ?tipe { "Ayat" "Subayat" }
?ayat schema:legislationLegalForce schema:InForce .
?ayat schema:legislationType ?tipe .
?ayat schema:text ?text .
?ayat schema:legislationIdentifier ?id
}
2. Mencari ayat yang dipengaruhi amandemen
PREFIX schema: <http://schema.org/>
PREFIX uuite: <http://linked-data-uu-ite.netlify.app/datagraph.ttl#>
SELECT ?id ?text
WHERE {
?ayat schema:legislationChanges ?ayatDiamandemen.
?ayatDiamandemen schema:legislationType "Ayat".
?ayatDiamandemen schema:legislationIdentifier ?id.
?ayatDiamandemen schema:text ?text.
}
3. Mencari isi pasal tertentu (Contoh: Pasal 43 UU ITE 2008)
PREFIX schema: <http://schema.org/>
PREFIX uuite: <http://linked-data-uu-ite.netlify.app/datagraph.ttl#>
SELECT ?id ?text
WHERE {
?ayat schema:legislationIdentifier ?id.
?ayat schema:text ?text.
?ayat schema:isPartOf uuite:pasal432008;
}