diff --git a/server/app/common/queries/sparql/get-artifacts-by-account.sparql b/server/app/common/queries/sparql/get-artifacts-by-account.sparql index fed57cc..250e8bf 100644 --- a/server/app/common/queries/sparql/get-artifacts-by-account.sparql +++ b/server/app/common/queries/sparql/get-artifacts-by-account.sparql @@ -7,11 +7,17 @@ PREFIX rdfs: SELECT DISTINCT ?artifact as ?uri ?title ?abstract ?description WHERE { - GRAPH ?g { - ?artifact a databus:Artifact . - ?artifact databus:account <%ACCOUNT_URI%> . + { + SELECT DISTINCT ?artifact WHERE { + GRAPH ?g1 { + ?artifact a databus:Artifact . + ?artifact databus:account <%ACCOUNT_URI%> . + } + } + } + GRAPH ?g2 { OPTIONAL { ?artifact dct:title ?title . } OPTIONAL { ?artifact dct:abstract ?abstract . } OPTIONAL { ?artifact dct:description ?description . } } -} \ No newline at end of file +}