Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
rbench
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stefan Braß
rbench
Commits
0301f743
Commit
0301f743
authored
5 years ago
by
Mario Wenzel
Browse files
Options
Downloads
Patches
Plain Diff
added path2 scripts
parent
cda12829
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
jena/path2.qry
+2
-0
2 additions, 0 deletions
jena/path2.qry
neo4j/path2.qry
+10
-0
10 additions, 0 deletions
neo4j/path2.qry
souffle/path2.dl
+15
-0
15 additions, 0 deletions
souffle/path2.dl
sql/path2.sql
+4
-0
4 additions, 0 deletions
sql/path2.sql
with
31 additions
and
0 deletions
jena/path2.qry
0 → 100644
+
2
−
0
View file @
0301f743
prefix : <http://example.org/stuff/1.0/>
SELECT (count(*) as ?resultcount) WHERE {?a :par / :par ?b}
This diff is collapsed.
Click to expand it.
neo4j/path2.qry
0 → 100644
+
10
−
0
View file @
0301f743
MATCH (n)
DETACH DELETE n;
LOAD CSV FROM 'file://INSTANCE' AS line
MERGE (a:Node {n: toInteger(line[0])})
MERGE (b:Node {n: toInteger(trim(line[1]))})
CREATE (a)-[:PAR]->(b);
MATCH (a)-[:PAR]->(t)-[:PAR]->(b)
RETURN COUNT(DISTINCT [a,b]);
This diff is collapsed.
Click to expand it.
souffle/path2.dl
0 → 100644
+
15
−
0
View file @
0301f743
//
// par - "parent"/"edge" relation
//
.decl par (n:number, m:number)
.input par(IO=file, filename="INSTANCE")
// par(1,2).
// par(2,3).
//.decl path2 (n:number, m:number) output
.decl path2 (n:number, m:number)
//.output path2(IO=stdout)
.printsize path2
path2(X, Y) :- par(X, Z), par(Z, Y).
This diff is collapsed.
Click to expand it.
sql/path2.sql
0 → 100644
+
4
−
0
View file @
0301f743
WITH
path2
(
a
,
b
)
AS
(
SELECT
p1
.
a
,
p2
.
b
from
par
p1
JOIN
par
p2c
ON
p1
.
b
=
p2
.
a
)
SELECT
Count
(
*
)
FROM
path2
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment