Skip to content

Commit

Permalink
Merge pull request #525 from EBISPOT/foaf_depiction
Browse files Browse the repository at this point in the history
Foaf depiction
  • Loading branch information
henrietteharmse authored Sep 27, 2023
2 parents 1da0833 + 526e984 commit b2708a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/src/model/Entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ export default abstract class Entity extends Thing {

getDepictedBy(): Reified<string>[] {
return Reified.fromJson<string>(
this.properties["http://xmlns.com/foaf/0.1/depicted_by"]
[ ...asArray(this.properties["http://xmlns.com/foaf/0.1/depicted_by"] || []),
...asArray(this.properties["http://xmlns.com/foaf/0.1/depiction"] || []) ]
);
}

Expand All @@ -104,6 +105,7 @@ export default abstract class Entity extends Thing {

// this is handled explicitly in EntityPage
if (predicate === "http://xmlns.com/foaf/0.1/depicted_by") continue;
if (predicate === "http://xmlns.com/foaf/0.1/depiction") continue;

let linkedEntity = this.getLinkedEntities().get(predicate)
if (linkedEntity != undefined && linkedEntity.type.indexOf("objectProperty") !== -1) continue;
Expand Down

0 comments on commit b2708a4

Please sign in to comment.