-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathendpoint.txt
47 lines (35 loc) · 960 Bytes
/
endpoint.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
43
44
45
46
47
#endpoint
http://localhost:8890/sparql
serdi -i turtle semq.ttl -o ntriples >semq.nt
delete from DB.DBA.LOAD_LIST;
commit work;
ld_add('/sharedf/semq.nt','semq');
rdf_loader_run ();
checkpoint;
select ?p count(*) as ?cnt
from <semq>
where {?s ?p ?o} group by ?p
having (count(*)>1)
order by desc(?cnt)
select ?c count(*) as ?cnt
from <semq>
where {?s a ?c} group by ?c
having (count(*)>1)
order by desc(?cnt)
prefix qvoc: <http://www.nlp2rdf.org/quranvocab#>
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
select ?s ?lbl
from <semq>
where {?s a qvoc:Verse
?s rdfs:label ?lbl} limit 100
#delete graph
http://localhost:8890/conductor linked data / graphs
sparql drop graph <semq>
#words with 1 char
prefix qvoc: <http://www.nlp2rdf.org/quranvocab#>
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
select ?lbl,count(*)
from <semq>
where {?s a qvoc:Word.
?s rdfs:label ?lbl.
filter(strlen(?lbl)=1)}