aboutsummaryrefslogtreecommitdiff
path: root/gn3
diff options
context:
space:
mode:
Diffstat (limited to 'gn3')
-rw-r--r--gn3/api/metadata.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/gn3/api/metadata.py b/gn3/api/metadata.py
index ce0b9c4..91e0b24 100644
--- a/gn3/api/metadata.py
+++ b/gn3/api/metadata.py
@@ -232,17 +232,18 @@ CONSTRUCT {
rdfs:label ?label ;
dct:title ?title ;
ex:belongsToInbredSet ?inbredSetName ;
- xkos:classifiedUnder ?datasetType
+ xkos:classifiedUnder ?datasetType ;
]
} WHERE {
{
SELECT ?dataset ?label ?inbredSetName ?datasetType ?title WHERE {
?dataset rdf:type dcat:Dataset ;
rdfs:label ?label ;
+ ?datasetPredicate ?datasetObject ;
xkos:classifiedUnder ?inbredSet .
?inbredSet ^skos:member gnc:Set ;
rdfs:label ?inbredSetName .
- ?label bif:contains "'$term'" .
+ ?datasetObject bif:contains "'$term'" .
OPTIONAL {
?dataset dct:title ?title .
} .
@@ -258,8 +259,8 @@ CONSTRUCT {
{
SELECT (COUNT(*)/$limit+1 AS ?totalCount) WHERE {
?dataset rdf:type dcat:Dataset ;
- rdfs:label ?label .
- ?label bif:contains "'$term'" .
+ ?p ?o .
+ ?o bif:contains "'$term'" .
}
}