@rubeneschauzier/solidbench 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/LICENSE.txt +21 -0
  2. package/README.md +211 -0
  3. package/bin/solidbench +2 -0
  4. package/bin/solidbench.d.ts +2 -0
  5. package/bin/solidbench.js +6 -0
  6. package/bin/solidbench.js.map +1 -0
  7. package/lib/CliRunner.d.ts +1 -0
  8. package/lib/CliRunner.js +20 -0
  9. package/lib/CliRunner.js.map +1 -0
  10. package/lib/Generator.d.ts +76 -0
  11. package/lib/Generator.js +231 -0
  12. package/lib/Generator.js.map +1 -0
  13. package/lib/Server.d.ts +19 -0
  14. package/lib/Server.js +34 -0
  15. package/lib/Server.js.map +1 -0
  16. package/lib/Templates.d.ts +14 -0
  17. package/lib/Templates.js +19 -0
  18. package/lib/Templates.js.map +1 -0
  19. package/lib/commands/CommandGenerate.d.ts +5 -0
  20. package/lib/commands/CommandGenerate.js +77 -0
  21. package/lib/commands/CommandGenerate.js.map +1 -0
  22. package/lib/commands/CommandServe.d.ts +5 -0
  23. package/lib/commands/CommandServe.js +50 -0
  24. package/lib/commands/CommandServe.js.map +1 -0
  25. package/lib/index.d.ts +4 -0
  26. package/lib/index.js +21 -0
  27. package/lib/index.js.map +1 -0
  28. package/package.json +68 -0
  29. package/templates/enhancer-config-pod.json +29 -0
  30. package/templates/enhancer-similarities-config-pod.json +39 -0
  31. package/templates/fragmenter-config-pod.json +525 -0
  32. package/templates/fragmenter-config-subject.json +63 -0
  33. package/templates/params.ini +5 -0
  34. package/templates/queries/README.md +43 -0
  35. package/templates/queries/interactive-complex-1.sparql +138 -0
  36. package/templates/queries/interactive-complex-10.sparql +89 -0
  37. package/templates/queries/interactive-complex-11.sparql +43 -0
  38. package/templates/queries/interactive-complex-12.sparql +36 -0
  39. package/templates/queries/interactive-complex-2.sparql +48 -0
  40. package/templates/queries/interactive-complex-3-duration-as-function.sparql +85 -0
  41. package/templates/queries/interactive-complex-3.sparql +85 -0
  42. package/templates/queries/interactive-complex-4-duration-as-function.sparql +36 -0
  43. package/templates/queries/interactive-complex-4.sparql +36 -0
  44. package/templates/queries/interactive-complex-5.sparql +55 -0
  45. package/templates/queries/interactive-complex-6.sparql +41 -0
  46. package/templates/queries/interactive-complex-7.sparql +84 -0
  47. package/templates/queries/interactive-complex-8.sparql +36 -0
  48. package/templates/queries/interactive-complex-9.sparql +45 -0
  49. package/templates/queries/interactive-discover-1.sparql +23 -0
  50. package/templates/queries/interactive-discover-2.sparql +23 -0
  51. package/templates/queries/interactive-discover-3.sparql +22 -0
  52. package/templates/queries/interactive-discover-4.sparql +23 -0
  53. package/templates/queries/interactive-discover-5.sparql +19 -0
  54. package/templates/queries/interactive-discover-6.sparql +22 -0
  55. package/templates/queries/interactive-discover-7.sparql +23 -0
  56. package/templates/queries/interactive-discover-8.sparql +22 -0
  57. package/templates/queries/interactive-short-1-nocity.sparql +33 -0
  58. package/templates/queries/interactive-short-1.sparql +34 -0
  59. package/templates/queries/interactive-short-2.sparql +39 -0
  60. package/templates/queries/interactive-short-3-unidir.sparql +27 -0
  61. package/templates/queries/interactive-short-3.sparql +32 -0
  62. package/templates/queries/interactive-short-4-creator.sparql +21 -0
  63. package/templates/queries/interactive-short-4.sparql +20 -0
  64. package/templates/queries/interactive-short-5.sparql +23 -0
  65. package/templates/queries/interactive-short-6.sparql +32 -0
  66. package/templates/queries/interactive-short-7.sparql +39 -0
  67. package/templates/query-config-single-pod.json +46 -0
  68. package/templates/query-config.json +778 -0
  69. package/templates/query-sequence-config.json +183 -0
  70. package/templates/refinements/interactive-discover-1.json +144 -0
  71. package/templates/refinements/interactive-discover-2.json +200 -0
  72. package/templates/refinements/interactive-discover-3.json +254 -0
  73. package/templates/refinements/interactive-discover-4.json +156 -0
  74. package/templates/refinements/interactive-discover-5.json +10 -0
  75. package/templates/refinements/interactive-discover-6.json +10 -0
  76. package/templates/refinements/interactive-discover-7.json +10 -0
  77. package/templates/refinements/interactive-discover-8.json +10 -0
  78. package/templates/refinements/interactive-short-1-bak.json +180 -0
  79. package/templates/refinements/interactive-short-1.json +65 -0
  80. package/templates/refinements/interactive-short-2.json +3 -0
  81. package/templates/server-config.json +72 -0
  82. package/templates/validation-config.json +644 -0
@@ -0,0 +1,41 @@
1
+ # Tag co-occurrence
2
+ PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
3
+ PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
4
+ PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
5
+ PREFIX sn: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/data/>
6
+ PREFIX snvoc: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/vocabulary/>
7
+ PREFIX sntag: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/tag/>
8
+ PREFIX foaf: <http://xmlns.com/foaf/0.1/>
9
+ PREFIX dbpedia: <http://localhost:3000/dbpedia.org/resource/>
10
+ PREFIX dbpedia-owl: <http://localhost:3000/dbpedia.org/ontology/>
11
+
12
+ SELECT
13
+ (?tag2Name AS ?tagName)
14
+ (COUNT(?post) AS ?postCount)
15
+ WHERE
16
+ {
17
+ BIND($tagName AS ?tagNameParam)
18
+ {
19
+ SELECT DISTINCT
20
+ ?fr
21
+ ?frId
22
+ WHERE
23
+ {
24
+ ?rootPerson a snvoc:Person .
25
+ ?rootPerson snvoc:id ?rootId .
26
+ ?rootPerson ((snvoc:knows/snvoc:hasPerson)|^(snvoc:knows/snvoc:hasPerson))?/((snvoc:knows/snvoc:hasPerson)|^(snvoc:knows/snvoc:hasPerson)) ?fr .
27
+ ?fr snvoc:id ?frId .
28
+ FILTER(?frId != ?rootId)
29
+ }
30
+ } .
31
+ ?post a snvoc:Post .
32
+ ?post snvoc:hasCreator ?fr .
33
+ ?post snvoc:hasTag ?tag1 .
34
+ ?tag1 foaf:name ?tagNameParam .
35
+ ?post snvoc:hasTag ?tag2 .
36
+ ?tag2 foaf:name ?tag2Name .
37
+ FILTER (?tag2Name != ?tagNameParam) .
38
+ }
39
+ GROUP BY ?tag2Name
40
+ ORDER BY DESC(?postCount) ?tag2Name
41
+ LIMIT 10
@@ -0,0 +1,84 @@
1
+ # Recent likers
2
+ PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
3
+ PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
4
+ PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
5
+ PREFIX sn: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/data/>
6
+ PREFIX snvoc: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/vocabulary/>
7
+ PREFIX sntag: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/tag/>
8
+ PREFIX foaf: <http://xmlns.com/foaf/0.1/>
9
+ PREFIX dbpedia: <http://localhost:3000/dbpedia.org/resource/>
10
+ PREFIX dbpedia-owl: <http://localhost:3000/dbpedia.org/ontology/>
11
+
12
+ SELECT
13
+ ?personId
14
+ (?firstName AS ?personFirstName)
15
+ (?lastName AS ?personLastName)
16
+ ?likeCreationDate
17
+ (?minMessageId AS ?messageId)
18
+ (?content AS ?messageContent)
19
+ (?latency AS ?minutesLatency)
20
+ ?isNew
21
+ WHERE
22
+ {
23
+ {
24
+ SELECT
25
+ ?person
26
+ (MIN(?messageId) AS ?minMessageId)
27
+ WHERE
28
+ {
29
+ {
30
+ SELECT
31
+ ?personId
32
+ (MAX(?likeDate) AS ?mostRecentLikeDate)
33
+ WHERE
34
+ {
35
+ {
36
+ SELECT DISTINCT
37
+ ?message
38
+ WHERE
39
+ {
40
+ VALUES (?type) {(snvoc:Comment) (snvoc:Post)}
41
+ ?rootPerson a snvoc:Person .
42
+ ?message snvoc:hasCreator ?rootPerson .
43
+ ?message a ?type
44
+ }
45
+ } .
46
+ ?person a snvoc:Person .
47
+ ?person snvoc:likes ?like .
48
+ ?person snvoc:id ?personId .
49
+ ?like snvoc:hasPost|snvoc:hasComment ?message .
50
+ ?like snvoc:creationDate ?likeDate .
51
+ }
52
+ GROUP BY ?personId
53
+ ORDER BY DESC(?mostRecentLikeDate) ?personId
54
+ LIMIT 20
55
+ }
56
+ VALUES (?type) {(snvoc:Comment) (snvoc:Post)}
57
+ ?rootPerson a snvoc:Person .
58
+ ?message snvoc:hasCreator ?rootPerson .
59
+ ?message a ?type .
60
+ ?message snvoc:id ?messageId .
61
+ ?person a snvoc:Person .
62
+ ?person snvoc:id ?personId .
63
+ ?person snvoc:likes ?like .
64
+ ?like snvoc:hasPost|snvoc:hasComment ?message .
65
+ ?like snvoc:creationDate ?mostRecentLikeDate .
66
+ }
67
+ GROUP BY ?person
68
+ } .
69
+ ?person snvoc:id ?personId .
70
+ ?person snvoc:firstName ?firstName .
71
+ ?person snvoc:lastName ?lastName .
72
+ ?person snvoc:likes ?like .
73
+ ?like snvoc:hasPost|snvoc:hasComment ?message .
74
+ ?message snvoc:id ?minMessageId .
75
+ ?like snvoc:creationDate ?likeCreationDate .
76
+ ?message snvoc:creationDate ?messageCreationDate .
77
+ ?message snvoc:content|snvoc:imageFile ?content .
78
+ BIND( ?likeCreationDate - ?messageCreationDate AS ?latencyInDuration )
79
+ BIND( (DAY(?latencyInDuration) * 24 + HOURS(?latencyInDuration)) * 60 + MINUTES(?latencyInDuration) AS ?latency )
80
+ ?rootPerson a snvoc:Person .
81
+ BIND( NOT EXISTS { ?rootPerson (snvoc:knows/snvoc:hasPerson)|^(snvoc:knows/snvoc:hasPerson) ?person } AS ?isNew )
82
+ }
83
+ ORDER BY DESC(?likeCreationDate) ?personId
84
+
@@ -0,0 +1,36 @@
1
+ # Recent replies
2
+ PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
3
+ PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
4
+ PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
5
+ PREFIX sn: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/data/>
6
+ PREFIX snvoc: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/vocabulary/>
7
+ PREFIX sntag: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/tag/>
8
+ PREFIX foaf: <http://xmlns.com/foaf/0.1/>
9
+ PREFIX dbpedia: <http://localhost:3000/dbpedia.org/resource/>
10
+ PREFIX dbpedia-owl: <http://localhost:3000/dbpedia.org/ontology/>
11
+
12
+ SELECT
13
+ ?personId
14
+ ?personFirstName
15
+ ?personLastName
16
+ ?commentCreationDate
17
+ ?commentId
18
+ ?commentContent
19
+ WHERE
20
+ {
21
+ VALUES (?type) {(snvoc:Comment) (snvoc:Post)}
22
+ ?rootPerson a snvoc:Person .
23
+ ?message snvoc:hasCreator ?rootPerson .
24
+ ?message a ?type .
25
+ ?comment a snvoc:Comment .
26
+ ?comment snvoc:replyOf ?message .
27
+ ?comment snvoc:creationDate ?commentCreationDate .
28
+ ?comment snvoc:id ?commentId .
29
+ ?comment snvoc:content ?commentContent .
30
+ ?comment snvoc:hasCreator ?person .
31
+ ?person snvoc:id ?personId .
32
+ ?person snvoc:firstName ?personFirstName .
33
+ ?person snvoc:lastName ?personLastName
34
+ }
35
+ ORDER BY DESC(?commentCreationDate) ?commentId
36
+ LIMIT 20
@@ -0,0 +1,45 @@
1
+ # Recent messages by friends or friends of friends
2
+ PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
3
+ PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
4
+ PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
5
+ PREFIX sn: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/data/>
6
+ PREFIX snvoc: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/vocabulary/>
7
+ PREFIX sntag: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/tag/>
8
+ PREFIX foaf: <http://xmlns.com/foaf/0.1/>
9
+ PREFIX dbpedia: <http://localhost:3000/dbpedia.org/resource/>
10
+ PREFIX dbpedia-owl: <http://localhost:3000/dbpedia.org/ontology/>
11
+
12
+ SELECT
13
+ (?frId AS ?personId)
14
+ (?first AS ?personFirstName)
15
+ (?last AS ?personLastName)
16
+ ?messageId
17
+ (?content AS ?messageContent)
18
+ (?creationDate AS ?messageCreationDate)
19
+ WHERE {
20
+ VALUES (?type) {(snvoc:Comment) (snvoc:Post)}
21
+ {
22
+ SELECT DISTINCT
23
+ ?fr
24
+ ?frId
25
+ WHERE
26
+ {
27
+ ?rootPerson a snvoc:Person .
28
+ ?rootPerson snvoc:id ?rootId .
29
+ ?rootPerson ((snvoc:knows/snvoc:hasPerson)|^(snvoc:knows/snvoc:hasPerson))?/((snvoc:knows/snvoc:hasPerson)|^(snvoc:knows/snvoc:hasPerson)) ?fr .
30
+ ?fr snvoc:id ?frId .
31
+ FILTER(?frId != ?rootId)
32
+ }
33
+ } .
34
+ ?message snvoc:hasCreator ?fr .
35
+ ?message a ?type .
36
+ ?message snvoc:creationDate ?creationDate .
37
+ FILTER(?creationDate < ?maxDate) .
38
+ ?message snvoc:content|snvoc:imageFile ?content .
39
+ ?message snvoc:id ?messageId .
40
+ ?fr snvoc:firstName ?first .
41
+ ?fr snvoc:lastName ?last .
42
+ ?fr snvoc:id ?frId
43
+ }
44
+ ORDER BY DESC(?creationDate) ?post
45
+ LIMIT 20
@@ -0,0 +1,23 @@
1
+ # All posts of a person
2
+ PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
3
+ PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
4
+ PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
5
+ PREFIX sn: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/data/>
6
+ PREFIX snvoc: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/vocabulary/>
7
+ PREFIX sntag: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/tag/>
8
+ PREFIX foaf: <http://xmlns.com/foaf/0.1/>
9
+ PREFIX dbpedia: <http://localhost:3000/dbpedia.org/resource/>
10
+ PREFIX dbpedia-owl: <http://localhost:3000/dbpedia.org/ontology/>
11
+
12
+ SELECT
13
+ ?messageId
14
+ ?messageCreationDate
15
+ ?messageContent
16
+ WHERE
17
+ {
18
+ ?message snvoc:hasCreator ?person;
19
+ rdf:type snvoc:Post;
20
+ snvoc:content ?messageContent;
21
+ snvoc:creationDate ?messageCreationDate;
22
+ snvoc:id ?messageId.
23
+ }
@@ -0,0 +1,23 @@
1
+ # All messages of a person
2
+ PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
3
+ PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
4
+ PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
5
+ PREFIX sn: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/data/>
6
+ PREFIX snvoc: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/vocabulary/>
7
+ PREFIX sntag: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/tag/>
8
+ PREFIX foaf: <http://xmlns.com/foaf/0.1/>
9
+ PREFIX dbpedia: <http://localhost:3000/dbpedia.org/resource/>
10
+ PREFIX dbpedia-owl: <http://localhost:3000/dbpedia.org/ontology/>
11
+
12
+ SELECT
13
+ ?messageId
14
+ ?messageCreationDate
15
+ ?messageContent
16
+ WHERE
17
+ {
18
+ ?message snvoc:hasCreator ?person;
19
+ snvoc:content ?messageContent;
20
+ snvoc:creationDate ?messageCreationDate;
21
+ snvoc:id ?messageId.
22
+ { ?message rdf:type snvoc:Post } UNION { ?message rdf:type snvoc:Comment }
23
+ }
@@ -0,0 +1,22 @@
1
+ # Top tags in messages from a person
2
+ PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
3
+ PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
4
+ PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
5
+ PREFIX sn: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/data/>
6
+ PREFIX snvoc: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/vocabulary/>
7
+ PREFIX sntag: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/tag/>
8
+ PREFIX foaf: <http://xmlns.com/foaf/0.1/>
9
+ PREFIX dbpedia: <http://localhost:3000/dbpedia.org/resource/>
10
+ PREFIX dbpedia-owl: <http://localhost:3000/dbpedia.org/ontology/>
11
+
12
+ SELECT
13
+ ?tagName
14
+ (COUNT(?message) as ?messages)
15
+ WHERE
16
+ {
17
+ ?message snvoc:hasCreator ?person;
18
+ snvoc:hasTag ?tag.
19
+ ?tag foaf:name ?tagName.
20
+ }
21
+ GROUP BY ?tagName
22
+ ORDER BY DESC(?messages)
@@ -0,0 +1,23 @@
1
+ # Top locations in comments from a person
2
+ PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
3
+ PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
4
+ PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
5
+ PREFIX sn: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/data/>
6
+ PREFIX snvoc: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/vocabulary/>
7
+ PREFIX sntag: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/tag/>
8
+ PREFIX foaf: <http://xmlns.com/foaf/0.1/>
9
+ PREFIX dbpedia: <http://localhost:3000/dbpedia.org/resource/>
10
+ PREFIX dbpedia-owl: <http://localhost:3000/dbpedia.org/ontology/>
11
+
12
+ SELECT
13
+ ?locationName
14
+ (COUNT(?message) as ?messages)
15
+ WHERE
16
+ {
17
+ ?message snvoc:hasCreator ?person;
18
+ rdf:type snvoc:Comment;
19
+ snvoc:isLocatedIn ?location.
20
+ ?location foaf:name ?locationName.
21
+ }
22
+ GROUP BY ?locationName
23
+ ORDER BY DESC(?messages)
@@ -0,0 +1,19 @@
1
+ # All IPs a person has messaged from
2
+ PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
3
+ PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
4
+ PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
5
+ PREFIX sn: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/data/>
6
+ PREFIX snvoc: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/vocabulary/>
7
+ PREFIX sntag: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/tag/>
8
+ PREFIX foaf: <http://xmlns.com/foaf/0.1/>
9
+ PREFIX dbpedia: <http://localhost:3000/dbpedia.org/resource/>
10
+ PREFIX dbpedia-owl: <http://localhost:3000/dbpedia.org/ontology/>
11
+
12
+ SELECT
13
+ DISTINCT
14
+ ?locationIp
15
+ WHERE
16
+ {
17
+ ?message snvoc:hasCreator ?person;
18
+ snvoc:locationIP ?locationIp.
19
+ }
@@ -0,0 +1,22 @@
1
+ # All fora a person messaged on
2
+ PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
3
+ PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
4
+ PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
5
+ PREFIX sn: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/data/>
6
+ PREFIX snvoc: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/vocabulary/>
7
+ PREFIX sntag: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/tag/>
8
+ PREFIX foaf: <http://xmlns.com/foaf/0.1/>
9
+ PREFIX dbpedia: <http://localhost:3000/dbpedia.org/resource/>
10
+ PREFIX dbpedia-owl: <http://localhost:3000/dbpedia.org/ontology/>
11
+
12
+ SELECT
13
+ DISTINCT
14
+ ?forumId
15
+ ?forumTitle
16
+ WHERE
17
+ {
18
+ ?message snvoc:hasCreator ?person.
19
+ ?forum snvoc:containerOf ?message;
20
+ snvoc:id ?forumId;
21
+ snvoc:title ?forumTitle.
22
+ }
@@ -0,0 +1,23 @@
1
+ # All moderators in fora a person messaged on
2
+ PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
3
+ PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
4
+ PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
5
+ PREFIX sn: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/data/>
6
+ PREFIX snvoc: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/vocabulary/>
7
+ PREFIX sntag: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/tag/>
8
+ PREFIX foaf: <http://xmlns.com/foaf/0.1/>
9
+ PREFIX dbpedia: <http://localhost:3000/dbpedia.org/resource/>
10
+ PREFIX dbpedia-owl: <http://localhost:3000/dbpedia.org/ontology/>
11
+
12
+ SELECT
13
+ DISTINCT
14
+ ?firstName
15
+ ?lastName
16
+ WHERE
17
+ {
18
+ ?message snvoc:hasCreator ?person.
19
+ ?forum snvoc:containerOf ?message;
20
+ snvoc:hasModerator ?moderator.
21
+ ?moderator snvoc:firstName ?firstName .
22
+ ?moderator snvoc:lastName ?lastName .
23
+ }
@@ -0,0 +1,22 @@
1
+ # Other messages created by people that a person likes messages from
2
+ PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
3
+ PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
4
+ PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
5
+ PREFIX sn: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/data/>
6
+ PREFIX snvoc: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/vocabulary/>
7
+ PREFIX sntag: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/tag/>
8
+ PREFIX foaf: <http://xmlns.com/foaf/0.1/>
9
+ PREFIX dbpedia: <http://localhost:3000/dbpedia.org/resource/>
10
+ PREFIX dbpedia-owl: <http://localhost:3000/dbpedia.org/ontology/>
11
+
12
+ SELECT
13
+ DISTINCT
14
+ ?creator
15
+ ?messageContent
16
+ WHERE
17
+ {
18
+ ?person snvoc:likes [ snvoc:hasPost|snvoc:hasComment ?message ].
19
+ ?message snvoc:hasCreator ?creator.
20
+ ?otherMessage snvoc:hasCreator ?creator;
21
+ snvoc:content ?messageContent.
22
+ } LIMIT 10
@@ -0,0 +1,33 @@
1
+ # Profile of a person, without lookup to the city id
2
+ PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
3
+ PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
4
+ PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
5
+ PREFIX sn: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/data/>
6
+ PREFIX snvoc: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/vocabulary/>
7
+ PREFIX sntag: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/tag/>
8
+ PREFIX foaf: <http://xmlns.com/foaf/0.1/>
9
+ PREFIX dbpedia: <http://localhost:3000/dbpedia.org/resource/>
10
+ PREFIX dbpedia-owl: <http://localhost:3000/dbpedia.org/ontology/>
11
+
12
+ SELECT
13
+ ?firstName
14
+ ?lastName
15
+ ?birthday
16
+ ?locationIP
17
+ ?browserUsed
18
+ ?cityId
19
+ ?gender
20
+ ?creationDate
21
+ WHERE
22
+ {
23
+ ?person a snvoc:Person .
24
+ ?person snvoc:id ?personId .
25
+ ?person snvoc:firstName ?firstName .
26
+ ?person snvoc:lastName ?lastName .
27
+ ?person snvoc:gender ?gender .
28
+ ?person snvoc:birthday ?birthday .
29
+ ?person snvoc:creationDate ?creationDate .
30
+ ?person snvoc:locationIP ?locationIP .
31
+ ?person snvoc:isLocatedIn ?city .
32
+ ?person snvoc:browserUsed ?browserUsed .
33
+ }
@@ -0,0 +1,34 @@
1
+ # Profile of a person
2
+ PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
3
+ PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
4
+ PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
5
+ PREFIX sn: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/data/>
6
+ PREFIX snvoc: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/vocabulary/>
7
+ PREFIX sntag: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/tag/>
8
+ PREFIX foaf: <http://xmlns.com/foaf/0.1/>
9
+ PREFIX dbpedia: <http://localhost:3000/dbpedia.org/resource/>
10
+ PREFIX dbpedia-owl: <http://localhost:3000/dbpedia.org/ontology/>
11
+
12
+ SELECT
13
+ ?firstName
14
+ ?lastName
15
+ ?birthday
16
+ ?locationIP
17
+ ?browserUsed
18
+ ?cityId
19
+ ?gender
20
+ ?creationDate
21
+ WHERE
22
+ {
23
+ ?person a snvoc:Person .
24
+ ?person snvoc:id ?personId .
25
+ ?person snvoc:firstName ?firstName .
26
+ ?person snvoc:lastName ?lastName .
27
+ ?person snvoc:gender ?gender .
28
+ ?person snvoc:birthday ?birthday .
29
+ ?person snvoc:creationDate ?creationDate .
30
+ ?person snvoc:locationIP ?locationIP .
31
+ ?person snvoc:isLocatedIn ?city .
32
+ ?city snvoc:id ?cityId .
33
+ ?person snvoc:browserUsed ?browserUsed .
34
+ }
@@ -0,0 +1,39 @@
1
+ # Recent messages of a person
2
+ PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
3
+ PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
4
+ PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
5
+ PREFIX sn: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/data/>
6
+ PREFIX snvoc: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/vocabulary/>
7
+ PREFIX sntag: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/tag/>
8
+ PREFIX foaf: <http://xmlns.com/foaf/0.1/>
9
+ PREFIX dbpedia: <http://localhost:3000/dbpedia.org/resource/>
10
+ PREFIX dbpedia-owl: <http://localhost:3000/dbpedia.org/ontology/>
11
+
12
+ SELECT
13
+ ?messageId
14
+ ?messageContent
15
+ ?messageCreationDate
16
+ ?originalPostId
17
+ ?originalPostAuthorId
18
+ ?originalPostAuthorFirstName
19
+ ?originalPostAuthorLastName
20
+ WHERE {
21
+ ?person a snvoc:Person .
22
+ ?person snvoc:id ?personId .
23
+ ?message snvoc:hasCreator ?person .
24
+ ?message snvoc:content|snvoc:imageFile ?messageContent .
25
+ ?message snvoc:creationDate ?messageCreationDate .
26
+ ?message snvoc:id ?messageId .
27
+ OPTIONAL {
28
+ ?message snvoc:replyOf* ?originalPostInner .
29
+ ?originalPostInner a snvoc:Post .
30
+ } .
31
+ BIND( COALESCE(?originalPostInner, ?message) AS ?originalPost ) .
32
+ ?originalPost snvoc:id ?originalPostId .
33
+ ?originalPost snvoc:hasCreator ?creator .
34
+ ?creator snvoc:firstName ?originalPostAuthorFirstName .
35
+ ?creator snvoc:lastName ?originalPostAuthorLastName .
36
+ ?creator snvoc:id ?originalPostAuthorId .
37
+ }
38
+ LIMIT 10
39
+
@@ -0,0 +1,27 @@
1
+ # Friends of a person (unidirectional)
2
+ PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
3
+ PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
4
+ PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
5
+ PREFIX sn: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/data/>
6
+ PREFIX snvoc: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/vocabulary/>
7
+ PREFIX sntag: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/tag/>
8
+ PREFIX foaf: <http://xmlns.com/foaf/0.1/>
9
+ PREFIX dbpedia: <http://localhost:3000/dbpedia.org/resource/>
10
+ PREFIX dbpedia-owl: <http://localhost:3000/dbpedia.org/ontology/>
11
+
12
+ SELECT
13
+ ?personId
14
+ ?firstName
15
+ ?lastName
16
+ ?friendshipCreationDate
17
+ WHERE
18
+ {
19
+ ?rootPerson a snvoc:Person .
20
+ ?rootPerson snvoc:id ?rootId .
21
+ ?rootPerson snvoc:knows ?knows .
22
+ ?knows snvoc:hasPerson ?person .
23
+ ?knows snvoc:creationDate ?friendshipCreationDate .
24
+ ?person snvoc:firstName ?firstName .
25
+ ?person snvoc:lastName ?lastName .
26
+ ?person snvoc:id ?personId .
27
+ }
@@ -0,0 +1,32 @@
1
+ # Friends of a person
2
+ PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
3
+ PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
4
+ PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
5
+ PREFIX sn: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/data/>
6
+ PREFIX snvoc: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/vocabulary/>
7
+ PREFIX sntag: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/tag/>
8
+ PREFIX foaf: <http://xmlns.com/foaf/0.1/>
9
+ PREFIX dbpedia: <http://localhost:3000/dbpedia.org/resource/>
10
+ PREFIX dbpedia-owl: <http://localhost:3000/dbpedia.org/ontology/>
11
+
12
+ SELECT
13
+ ?personId
14
+ ?firstName
15
+ ?lastName
16
+ ?friendshipCreationDate
17
+ WHERE
18
+ {
19
+ ?rootPerson a snvoc:Person .
20
+ ?rootPerson snvoc:id ?rootId .
21
+ {
22
+ ?rootPerson snvoc:knows ?knows .
23
+ ?knows snvoc:hasPerson ?person .
24
+ } UNION {
25
+ ?person snvoc:knows ?knows .
26
+ ?knows snvoc:hasPerson ?rootPerson .
27
+ }
28
+ ?knows snvoc:creationDate ?friendshipCreationDate .
29
+ ?person snvoc:firstName ?firstName .
30
+ ?person snvoc:lastName ?lastName .
31
+ ?person snvoc:id ?personId .
32
+ }
@@ -0,0 +1,21 @@
1
+ # Content of a message, based on a creator
2
+ PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
3
+ PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
4
+ PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
5
+ PREFIX sn: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/data/>
6
+ PREFIX snvoc: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/vocabulary/>
7
+ PREFIX sntag: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/tag/>
8
+ PREFIX foaf: <http://xmlns.com/foaf/0.1/>
9
+ PREFIX dbpedia: <http://localhost:3000/dbpedia.org/resource/>
10
+ PREFIX dbpedia-owl: <http://localhost:3000/dbpedia.org/ontology/>
11
+
12
+ SELECT
13
+ ?messageCreationDate
14
+ ?messageContent
15
+ WHERE
16
+ {
17
+ ?message snvoc:id ?messageId .
18
+ ?message snvoc:creationDate ?messageCreationDate .
19
+ ?message snvoc:content|snvoc:imageFile ?messageContent .
20
+ ?message snvoc:hasCreator ?creator .
21
+ }
@@ -0,0 +1,20 @@
1
+ # Content of a message
2
+ PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
3
+ PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
4
+ PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
5
+ PREFIX sn: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/data/>
6
+ PREFIX snvoc: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/vocabulary/>
7
+ PREFIX sntag: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/tag/>
8
+ PREFIX foaf: <http://xmlns.com/foaf/0.1/>
9
+ PREFIX dbpedia: <http://localhost:3000/dbpedia.org/resource/>
10
+ PREFIX dbpedia-owl: <http://localhost:3000/dbpedia.org/ontology/>
11
+
12
+ SELECT
13
+ ?messageCreationDate
14
+ ?messageContent
15
+ WHERE
16
+ {
17
+ ?message snvoc:id ?messageId .
18
+ ?message snvoc:creationDate ?messageCreationDate .
19
+ ?message snvoc:content|snvoc:imageFile ?messageContent .
20
+ }
@@ -0,0 +1,23 @@
1
+ # Creator of a message
2
+ PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
3
+ PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
4
+ PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
5
+ PREFIX sn: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/data/>
6
+ PREFIX snvoc: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/vocabulary/>
7
+ PREFIX sntag: <http://localhost:3000/www.ldbc.eu/ldbc_socialnet/1.0/tag/>
8
+ PREFIX foaf: <http://xmlns.com/foaf/0.1/>
9
+ PREFIX dbpedia: <http://localhost:3000/dbpedia.org/resource/>
10
+ PREFIX dbpedia-owl: <http://localhost:3000/dbpedia.org/ontology/>
11
+
12
+ SELECT
13
+ ?personId
14
+ ?firstName
15
+ ?lastName
16
+ WHERE
17
+ {
18
+ ?message snvoc:id ?messageId .
19
+ ?message snvoc:hasCreator ?creator .
20
+ ?creator snvoc:id ?personId .
21
+ ?creator snvoc:firstName ?firstName .
22
+ ?creator snvoc:lastName ?lastName .
23
+ }