Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
SemWeb
logilab-views
Commits
280dbe572038
Commit
5a75c63a
authored
Mar 23, 2020
by
Élodie Thiéblin
Browse files
[BlogPost] add Https alias
parent
6d63281c00fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/blogpost/blogpost.tsx
View file @
280dbe57
...
...
@@ -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
.
a
liases
,
storeA
liases
,
ONTOLOGY
.
inverses
);
let
entity
=
repo
.
entityForUri
(
target
.
uri
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment