Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DKE_project
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marc Feger
DKE_project
Commits
30552af0
Commit
30552af0
authored
6 years ago
by
Marc Feger
Browse files
Options
Downloads
Patches
Plain Diff
Query additional information of dbpedia.
parent
69f24093
No related branches found
No related tags found
No related merge requests found
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
static/dbpedia_groundtruth.sparql
+60
-31
60 additions, 31 deletions
static/dbpedia_groundtruth.sparql
static/dbpedia_groundtruth.txt
+1
-1
1 addition, 1 deletion
static/dbpedia_groundtruth.txt
with
61 additions
and
32 deletions
static/dbpedia_groundtruth.sparql
+
60
−
31
View file @
30552af0
...
@@ -3,7 +3,23 @@
...
@@ -3,7 +3,23 @@
PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
SELECT ?movie
(GROUP_CONCAT(DISTINCT ?name;separator="|") AS ?Title)
(GROUP_CONCAT(DISTINCT ?director;separator="|") AS ?Director)
(GROUP_CONCAT(DISTINCT ?author;separator="|") AS ?Author)
(GROUP_CONCAT(DISTINCT ?cast_member;separator="|") AS ?Cast)
(GROUP_CONCAT(DISTINCT ?releaseDate;separator="|") AS ?Published)
(GROUP_CONCAT(DISTINCT ?subject;separator="|") AS ?Subject)
(GROUP_CONCAT(DISTINCT ?genre;separator="|") AS ?Genre)
(GROUP_CONCAT(DISTINCT ?duration/60;separator="|") AS ?Duration)
(GROUP_CONCAT(DISTINCT ?abstract;separator="|") AS ?Description)
(GROUP_CONCAT(DISTINCT ?distributor;separator="|") AS ?Distributor)
(GROUP_CONCAT(DISTINCT ?productionCompanies;separator="|") AS ?ProductionCompanies)
WHERE {
{
SELECT DISTINCT ?movie
SELECT DISTINCT ?movie
WHERE {
WHERE {
SELECT DISTINCT ?movie ?min_year ?max_year
SELECT DISTINCT ?movie ?min_year ?max_year
...
@@ -31,3 +47,16 @@
...
@@ -31,3 +47,16 @@
} GROUP BY ?movie ?director
} GROUP BY ?movie ?director
}GROUP BY ?movie HAVING (?min_year = ?max_year)
}GROUP BY ?movie HAVING (?min_year = ?max_year)
}GROUP BY ?movie HAVING (?min_year >= 1970)
}GROUP BY ?movie HAVING (?min_year >= 1970)
}
OPTIONAL{?movie foaf:name ?name FILTER(LANG(?name)="en").}
OPTIONAL{?movie dbo:director ?director.}
OPTIONAL{?movie dbo:author ?author.}
OPTIONAL{?movie dbo:starring ?cast_member.}
OPTIONAL{?movie dbo:releaseDate ?releaseDate.}
OPTIONAL{?movie dct:subject ?subject FILTER CONTAINS(lcase(str(?subject)), "comedy").}
OPTIONAL{?movie dbo:genre ?genre FILTER CONTAINS(lcase(str(?genre)), "comedy").}
OPTIONAL{?movie dbo:runtime ?duration.}
OPTIONAL{?movie dbo:abstract ?abstract FILTER(LANG(?abstract)="en").}
OPTIONAL{?movie dbo:distributor ?distributor.}
OPTIONAL{?movie dbp:productionCompanies ?productionCompanies FILTER CONTAINS (lcase(str(?productionCompanies)), "http").}
}GROUP BY ?movie
\ No newline at end of file
This diff is collapsed.
Click to expand it.
static/dbpedia_groundtruth.txt
+
1
−
1
View file @
30552af0
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