Skip to content

Commit

Permalink
Do not error on (edge?) cases
Browse files Browse the repository at this point in the history
Fixes #1

Not really so edge
  • Loading branch information
patrickmcelwee authored Jan 11, 2018
1 parent 5322c43 commit 5ea173f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions visjs-lib.xqy
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,13 @@ declare function visjs:build-graph(
(COALESCE(?subjectLabel, ?subject) AS ?label)
(COALESCE(?subjectType, 'unknown') AS ?type)
WHERE {
{
?subject ?predicateUri [] .
}
OPTIONAL {
?subject rdfs:label ?subjectLabel .
}
OPTIONAL {
?subject rdf:type ?subjectType .
}
}
} LIMIT 1
"),
map:new((
map:entry("subject", sem:iri($node-uri))
Expand Down

0 comments on commit 5ea173f

Please sign in to comment.