Skip to content

Commit

Permalink
duplicate artifact displayed on account page fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Forberg committed Feb 7, 2024
1 parent 0ce854a commit 5ef5b36
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions server/app/common/queries/sparql/get-artifacts-by-account.sparql
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,17 @@ PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

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 . }
}
}
}

0 comments on commit 5ef5b36

Please sign in to comment.