Commit 5a75c63a authored by Élodie Thiéblin's avatar Élodie Thiéblin
Browse files

[BlogPost] add Https alias

parent 6d63281c00fa
......@@ -31,6 +31,7 @@ import * as $rdf from "rdflib";
import { ONTOLOGY } from "../common/schema";
import { BlogPostComponent } from "./BlogPostView";
import { loadBlogPost } from "./blogpostschema";
import { httpsAlias } from "../common/aliases";
/**
* The descriptor for the default blog post view
......@@ -63,9 +64,11 @@ class BlogPostRendering implements implementation.ViewImplementation {
}
priorityFor(store: $rdf.Formula, target: application.Resource): number {
const storeAliases = ONTOLOGY.aliases;
storeAliases.push(httpsAlias(target.uri));
let repo = new rdfEntities.RdfEntityStore(
store,
ONTOLOGY.aliases,
storeAliases,
ONTOLOGY.inverses
);
let entity = repo.entityForUri(target.uri);
......
Markdown is supported
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