Commit 6ebc4ecd authored by Laurent Wouters's avatar Laurent Wouters
Browse files

Support display of influencedby relations in FoaF view

parent ed8fa7afa5d7
......@@ -40,7 +40,7 @@
</div>
</div>
<hr/>
<h3>Influences</h3>
<h3>Influenced</h3>
<div v-for="uri in person.influenced" v-bind:key="uri" class="card">
<div className="card-body">
<span>Influenced: </span>
......@@ -48,6 +48,14 @@
</div>
</div>
<hr/>
<h3>Influenced by</h3>
<div v-for="uri in person.influencedBy" v-bind:key="uri" class="card">
<div className="card-body">
<span>Influenced by: </span>
<a v-on:click="(event) => {event.preventDefault(); context.event.onRequestNavigateTo(uri);}" :href=uri>{{uri}}</a>
</div>
</div>
<hr/>
<h3>Links</h3>
</div>
</div>
......
......@@ -110,6 +110,7 @@ const ALIAS = [
["http://dbpedia.org/ontology/deathDate"],
["http://dbpedia.org/ontology/deathPlace"],
["http://dbpedia.org/ontology/influenced"],
["http://dbpedia.org/ontology/influencedBy"],
[
"http://dbpedia.org/ontology/notableWork",
"http://data.bnf.fr/vocabulary/roles/r70",
......@@ -141,6 +142,7 @@ interface FoaFPerson {
deathDate: string;
deathPlace: string;
influenced: string[];
influencedBy: string[];
works: string[];
}
......@@ -231,6 +233,7 @@ function loadPerson(
deathDate: l("http://dbpedia.org/ontology/deathDate"),
deathPlace: l("http://dbpedia.org/ontology/deathPlace"),
influenced: r("http://dbpedia.org/ontology/influenced"),
influencedBy: r("http://dbpedia.org/ontology/influencedBy"),
works: r("http://dbpedia.org/ontology/notableWork")
};
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment