Skip to content

Commit

Permalink
Merge pull request #37 from zazuko:BenjaminHofstetter/issue35
Browse files Browse the repository at this point in the history
I noticed that sketch ignores the weird node<>
  • Loading branch information
BenjaminHofstetter authored Dec 3, 2024
2 parents c7cff87 + 7bc0d4b commit 8913d6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/resources-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ export function resourcesFromDataset(dataset: Dataset): Resource[] {
if (b.name === 'rdf:type') return 1;
return a.name.localeCompare(b.name);
})

return {
id: node.value,
id: node.value === '' ? '_:nobody' : node.value,
term: node,
name: shrinkTerm(node),
properties: orderedProperties
Expand Down

0 comments on commit 8913d6b

Please sign in to comment.