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
7d7b4400bcd9
Commit
b03c4050
authored
Mar 23, 2020
by
Élodie Thiéblin
Browse files
[DublinCore] Add http or https alias to target uri
parent
83187f1d0bbd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dublincore/dublincore.tsx
View file @
7d7b4400
...
...
@@ -31,6 +31,7 @@ import * as $rdf from "rdflib";
import
{
DublinCoreElementComponent
}
from
"
./DublinCoreImpl
"
;
import
{
ONTOLOGY
}
from
"
../common/schema
"
;
import
{
loadDublinCoreElement
}
from
"
./dcschema
"
;
import
{
httpsAlias
}
from
"
../common/aliases
"
;
/**
* The descriptor for the default blog post view
...
...
@@ -63,9 +64,11 @@ class DCElementRendering 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
);
...
...
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