Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

metaphacts req #1

Open
nav-mike opened this issue Feb 10, 2017 · 0 comments
Open

metaphacts req #1

nav-mike opened this issue Feb 10, 2017 · 0 comments

Comments

@nav-mike
Copy link
Member

PREFIX rdfs: http://www.w3.org/2000/01/rdf-schema#
PREFIX bds: http://www.bigdata.com/rdf/search#
PREFIX schema: http://schema.org/
PREFIX : http://www.metaphacts.com/resource/
PREFIX Help: http://help.metaphacts.com/resource/
PREFIX User: http://www.metaphacts.com/resource/user/
PREFIX Platform: http://www.metaphacts.com/ontologies/platform/
PREFIX owl: http://www.w3.org/2002/07/owl#
PREFIX wdt: http://www.wikidata.org/prop/direct/
PREFIX xsd: http://www.w3.org/2001/XMLSchema#
PREFIX skos: http://www.w3.org/2004/02/skos/core#
PREFIX wd: http://www.wikidata.org/entity/
PREFIX default: http://www.metaphacts.com/resource/
PREFIX dcterms: http://purl.org/dc/terms/
PREFIX dcat: http://www.w3.org/ns/dcat#
PREFIX sp: http://spinrdf.org/sp#
PREFIX foaf: http://xmlns.com/foaf/0.1/
PREFIX void: http://rdfs.org/ns/void#
PREFIX sorg: http://schema.org
PREFIX wikibase: http://wikiba.se/ontology#
PREFIX nextprot: http://nextprot.org/rdf#
PREFIX dbpedia: http://dbpedia.org/ontology/
PREFIX Admin: http://www.metaphacts.com/resource/admin/
PREFIX Default: http://www.metaphacts.com/resource/
PREFIX dc: http://purl.org/dc/elements/1.1/
SELECT DISTINCT ?uri ?label ?description ?img WHERE {
?uri http://www.w3.org/2000/01/rdf-schema#label ?label.
?uri http://schema.org/description ?description.
?label http://www.bigdata.com/rdf/search#search "semantic web".
?label http://www.bigdata.com/rdf/search#minRelevance "0.5".
?label http://www.bigdata.com/rdf/search#matchAllTerms "true".
BIND(http://www.w3.org/2001/XMLSchema#integer(SUBSTR(STR(?uri), 33 )) AS ?q)
OPTIONAL {
?uri (http://www.wikidata.org/prop/direct/P18|http://www.wikidata.org/prop/direct/P41|http://www.wikidata.org/prop/direct/P154) ?image.
BIND(CONCAT("https://commons.wikimedia.org/w/thumb.php?f=", STRAFTER(STR(?image), "Special:FilePath/"), "&w=120") AS ?img)
}
}
ORDER BY ?q
LIMIT 10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant