zPlus 6725e17c49 Merge branch 'vaeringjar/add-keyboards' of vaeringjar/dokk into master | 3 роки тому | |
---|---|---|
mimi_and_eunice | 3 роки тому | |
nkro_test | 3 роки тому | |
.gitignore | 3 роки тому | |
README.md | 3 роки тому |
Download Jena:
wget https://downloads.apache.org/jena/binaries/apache-jena-<version>.tar.gz
tar xzf apache-jena-<version>.tar.gz
Make sure apache-jena-<version>/bin/
is in your $PATH
.
Create the database (execute from the root of the repository):
tdbloader --loc=dokk ./**/*.ttl
The database is ready to accept queries from the command line
tdbquery --loc=dokk "SELECT DISTINCT ?subject WHERE {?subject ?predicate ?object}"
Hint: if these queries are too long to be typed in the CLI, they can be saved
to a file and read like this: tdbquery --loc=dokk --query=<file_name>
Find all the keyboards that pass the double-shift nkro test:
PREFIX : <dokk:nkro_test/>
SELECT DISTINCT ?keeb
WHERE {
?keeb :test [
:result "THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG"
]
}
Is there any membrane keyboard that pass the double-shift test?
PREFIX : <dokk:nkro_test/>
ASK {
?keeb a :Keyboard;
:type "membrane";
:test [
:result "THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG"
]
}
Shame membrane keebs:
PREFIX : <dokk:nkro_test/>
SELECT ?keeb ?type ?result {
?keeb a :Keyboard;
:type ?type;
:test [ :result ?result ] .
FILTER(?result != "THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG")
}
List all Mimi&Eunice comics:
PREFIX : <dokk:mimi_and_eunice/>
SELECT ?n ?t
WHERE {
?cs a :ComicStrip;
:number ?n;
:title ?t
}
ORDER BY ?n