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
uib-ub
Spesialsamlingene
admin components
Commits
ed73d7d7
Commit
ed73d7d7
authored
Dec 17, 2020
by
Øyvind gjesdal
Browse files
test using man made object for newspaper
parent
94e9830c
Pipeline
#49021
passed with stages
in 1 minute and 39 seconds
Changes
17
Pipelines
1
Show whitespace changes
Inline
Side-by-side
types/bibo__Newspaper/html.template
deleted
100755 → 0
View file @
94e9830c
<!DOCTYPE html>
<html
lang=
"no"
prefix=
"og: http://ogp.me/ns#"
>
<head>
{%include "../../includes/head_common.inc"%}
{%include "../../includes/head_page.inc"%}
</head>
<body>
{%include "../../includes/sidebar.inc"%}
<div
class=
"pusher"
>
{%include "../../includes/static_sidebar_left.inc"%}
<div
class=
"ui segment"
>
<div
class=
"main-content-wrapper"
>
{%include "../../includes/header.inc"%}
<div
class=
"main-content"
>
<div
class=
"ui grid"
>
<div
class=
"ui sixteen wide column"
>
<div
class=
"col-md-9"
>
{% for row in models.main %}
<h1>
{{ row.title.value }}
</h1>
{% endfor %}
<!-- <p>Signatur: <a href="{{lodspk.this.value}}">{{ first.main.identifier.value }}</a></p> -->
{% if not first.maker.maker.value | null %}
<p><span
class=
"glyphicon glyphicon-pencil"
></span>
{% for row in models.maker %}
<a
href=
"{{ row.maker.value }}"
>
{{ row.makerName.value }}
</a>
{%if !forloop.last%}, {%endif%}
{% endfor %}
</p>
{% endif %}
{% for row in models.description %}
<p
class=
"lead"
>
{{ row.description.value }}
</p>
{%endfor%}
{% for row in models.physicalcondition %}
<p>
{{ row.physicalCondition.value }}
</p>
{%endfor%}
{% for row in models.physicaldescription %}
<p>
{{ row.physicalDescription.value }}
</p>
{%endfor%}
{% for row in models.internalnote %}
<p>
{{ row.internalNote.value }}
</p>
{%endfor%}
{% if models.digitalresource|length != 0 %}
<div
class=
"row"
>
{% for row in models.digitalresource %}
<div
class=
"col-md-4 col-lg-4"
>
<a
class=
"thumbnail"
href=
"{{ row.hasuri.value }}"
><img
class=
"img-responsive"
src=
"{{row.thumbnail.value}}"
alt=
""
></a>
<div
class=
"caption"
>
<h3>
{{ row.label.value }}
</h3>
</div>
</div>
{% endfor %}
</div>
{% endif %}
{% if not first.transcription.html.value | null %}
<div
id=
"transcription"
class=
"row well"
>
<iframe
src=
"{{first.transcription.html.value}}"
width=
"100%"
height=
"300"
></iframe>
<p>
Last ned XML:
<a
href=
"{{first.transcription.xml.value}}"
>
{{first.transcription.xml.value}}
</a></p>
</div>
{% endif %}
<div
id=
"resource-metadata"
class=
"row"
>
{% if models.recipient|length != 0 %}
<div
class=
"col-md-4 letter-info"
>
<h4><span
class=
"glyphicon glyphicon-envelope"
></span>
Brev
</h4>
{% for row in models.sender %}
<p>
Fra:
<a
href=
"{{row.uri.value}}"
>
{{ row.label.value }}
</a></p>
{% endfor %}
{% for row in models.recipient %}
<p>
Til:
<a
href=
"{{row.uri.value}}"
>
{{ row.label.value }}
</a></p>
{% endfor %}
</div>
{% endif %}
{% if first.main.created.value|length != 0 %}
<div
class=
"col-md-4"
>
<h4><span
class=
"glyphicon glyphicon-calendar"
></span>
Dato:
<span>
{{ first.main.created.value }}
</span><br>
</h4>
</div>
{% endif %}
{% if models.collections|length != 0 %}
<div
class=
"col-md-4"
>
<h4><span
class=
"glyphicon glyphicon-th"
></span>
Del av:
</h4>
<ul
class=
"list-unstyled"
>
{% for row in models.collections %}
<li><span
class=
"glyphicon glyphicon-th-large"
></span>
<a
href=
"{{ row.collection.value }}"
/>
{{row.collectionName.value}}
</a></li>
{% endfor %}
</ul>
</div>
{% endif %}
{% if models.relatedresources|length != 0 %}
<div
class=
"col-md-4"
>
<h4>
Relatert:
</h4>
<ul
class=
"list-unstyled"
>
{% for row in models.relatedresources %}
<li><span
class=
"glyphicon glyphicon-user"
></span>
<a
href=
"{{ row.uri.value }}"
/>
{{row.label.value}}
</a></li>
{% endfor %}
</ul>
</div>
{% endif %}
</div>
{% if models.subjects|length != 0 %}
<div
id=
"subjects"
>
<ul
class=
"subjects-inline-list"
>
{% for row in models.subjects %}
<li
class=
"tags"
><a
href=
"{{ row.subject.value }}"
/><i
class=
"icon-tag"
></i>
{{ row.subjectLabel.value }}
</a></li>
{% endfor %}
</ul>
</div>
{% endif %}
{% if models.depicted %}
<div
class=
"col-md-4"
id=
"depicted"
>
<h4>
Avbildet:
</h4>
<ul
class=
"list-unstyled"
>
{% for row in models.depicted %}
<li><span
class=
"glyphicon glyphicon-user"
></span>
<a
href=
"{{ row.depicts.value }}"
/>
{{row.depictsName.value}}
</a></li>
{% endfor %}
</ul>
</div>
{% endif %}
{% if not first.places.place.value | null %}
<div
id=
"places"
>
{% if not first.places.long.value | null %}
<div
id=
"map-wrap"
>
<div
id=
"map"
></div>
<ul
class=
"places-inline-list"
>
{% for row in models.places %}
<li><a
href=
"{{ row.place.value }}"
/><span
class=
"glyphicon glyphicon-map-marker"
></span>
{{row.placeName.value}}
</a></li>
{% endfor %}
</ul>
</div>
{% endif %}
{% if not first.places.place.value | null %}
</div>
{% endif %}
{% endif %}
<script>
var
map
=
L
.
map
(
'
map
'
);
var
bounds
=
[{
%
for
row
in
models
.
places
%
}{
%
if
not
row
.
lat
.
value
|
null
%
}[{{
row
.
lat
.
value
}},
{
%
endif
%
}{
%
if
row
.
long
.
value
!=
""
%
}{{
row
.
long
.
value
}}]{
%
if
forloop
.
first
&&
not
row
.
lat
.
value
|
null
%
},
{
%
endif
%
}{
%
if
!
forloop
.
last
&&
not
row
.
lat
.
value
|
null
%
},
{
%
endif
%
}{
%
endif
%
}{
%
endfor
%
}];
bounds
=
$
.
grep
(
bounds
,
function
(
n
){
return
(
n
)
});
if
(
bounds
.
length
>
1
)
{
map
.
fitBounds
(
new
L
.
LatLngBounds
(
bounds
));
}
else
{
map
.
setView
(
bounds
[
0
],
11
);}
var
defaultLayer
=
L
.
tileLayer
.
provider
(
'
OpenStreetMap.Mapnik
'
).
addTo
(
map
);
var
baseLayers
=
[
'
OpenStreetMap.Mapnik
'
,
'
MapQuestOpen.OSM
'
,
'
MapQuestOpen.Aerial
'
,
'
Stamen.Watercolor
'
];
var
overlayLayers
=
[
'
Kartverket
'
,
'
Rodekart9
'
,
'
Rodekart4
'
,
'
Rodekart1
'
];
L
.
control
.
layers
.
provided
(
baseLayers
,
overlayLayers
,
{
collapsed
:
true
}).
addTo
(
map
);
{
%
for
row
in
models
.
places
%
}
{
%
if
not
row
.
long
.
value
|
null
%
}
L
.
marker
([{{
row
.
lat
.
value
}},
{{
row
.
long
.
value
}}]).
addTo
(
map
).
bindPopup
(
"
<b><a href=
\"
{{ row.place.value }}
\"
>{{row.placeName.value}}</a></b>
"
).
openPopup
();
{
%
endif
%
}
{
%
endfor
%
}
</script>
<div
id=
"disqus_thread"
></div>
<script
type=
"text/javascript"
>
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var
disqus_shortname
=
'
ubblod
'
;
// required: replace example with your forum shortname
/* * * DON'T EDIT BELOW THIS LINE * * */
(
function
()
{
var
dsq
=
document
.
createElement
(
'
script
'
);
dsq
.
type
=
'
text/javascript
'
;
dsq
.
async
=
true
;
dsq
.
src
=
'
//
'
+
disqus_shortname
+
'
.disqus.com/embed.js
'
;
(
document
.
getElementsByTagName
(
'
head
'
)[
0
]
||
document
.
getElementsByTagName
(
'
body
'
)[
0
]).
appendChild
(
dsq
);
})();
</script>
<noscript>
Please enable JavaScript to view the
<a
href=
"http://disqus.com/?ref_noscript"
>
comments powered by Disqus.
</a></noscript>
<a
href=
"http://disqus.com"
class=
"dsq-brlink"
>
comments powered by
<span
class=
"logo-disqus"
>
Disqus
</span></a>
<div
class=
"row full-metadata-div"
>
<div
class=
"col-lg-12"
>
<button
type=
"button"
class=
"btn btn-sm btn-info"
data-toggle=
"collapse"
data-target=
"#full-meta-view"
>
Vis all informasjon
</button>
<div
id=
"full-meta-view"
class=
"collapse"
>
<table
class=
"table table-striped"
about=
"{{uri}}"
>
<thead>
<tr><th>
Subject
</th><th>
Predicate
</th><th>
Object
</th></tr>
</thead>
{% for row in models.po %}
<tr>
<td>
{%if forloop.first%}
<a
href=
'{{lodspk.this.value}}'
>
{{lodspk.this.curie}}
</a>
{%endif%}
</td>
<td><a
href=
'{{row.p.value}}'
>
{{row.p.curie}}
</a></td>
<td>
{%if row.o.uri == 1%}
<a
rel=
'{{row.p.value}}'
href=
'{{row.o.value}}'
>
{{row.o.curie}}
</a>
{%else%}
<span
property=
'{{row.p.value}}'
>
{{row.o.value}}
</span>
{%endif%}
</td>
</tr>
{% endfor %}
{% for row in models.sp %}
<tr>
<td><a
href=
'{{row.s.value}}'
>
{{row.s.curie}}
</a></td>
<td><a
rev=
'{{row.s.value}}'
href=
'{{row.p.value}}'
>
{{row.p.curie}}
</a></td>
<td>
{%if forloop.first%}
<a
href=
'{{lodspk.this.value}}'
>
{{lodspk.this.curie}}
</a>
{%endif%}
</td>
</tr>
{% endfor %}
<thead>
<tr><th>
Subject
</th><th>
Predicate
</th><th>
Object
</th></tr>
</thead>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{%include "../../includes/footer.inc"%}
</body>
</html>
types/bibo__Newspaper/queries/collections.query
deleted
100755 → 0
View file @
94e9830c
SELECT DISTINCT ?collection ?collectionName WHERE {
OPTIONAL { <{{ uri }}> dct:isPartOf ?collection . }
OPTIONAL { ?collection dct:title ?collectionName . }
OPTIONAL { ?collection rdfs:label ?collectionName .}
}
types/bibo__Newspaper/queries/description.query
deleted
100755 → 0
View file @
94e9830c
SELECT DISTINCT ?description WHERE {
OPTIONAL { <{{ uri }}> dct:description ?description .}
}
types/bibo__Newspaper/queries/digitalresource.query
deleted
100755 → 0
View file @
94e9830c
SELECT DISTINCT ?issue ?label ?hasuri ?thumbnail WHERE {
<{{ uri }}> dct:hasPart ?issue .
?issue rdfs:label ?label .
?issue ubbont:hasRepresentation ?hasRepresentation .
?hasRepresentation ubbont:hasURI ?hasuri .
OPTIONAL { ?hasRepresentation ubbont:hasThumbnail ?thumbnail . }
}
ORDER BY ?label
\ No newline at end of file
types/bibo__Newspaper/queries/dzi.query
deleted
100755 → 0
View file @
94e9830c
SELECT DISTINCT ?dziUri WHERE {
<{{ uri }}> ubbont:hasPage ?hasPage .
?hasPage ubbont:hasRepresentation ?hasRepresentation .
?hasRepresentation ubbont:hasURI ?dziUri .
?dziUri <http://www.semanticdesktop.org/ontologies/nie/#mimeType> ?mimeType
FILTER (?mimeType = "jpeg/dzi")
}
ORDER BY ?dziUri
types/bibo__Newspaper/queries/internalnote.query
deleted
100755 → 0
View file @
94e9830c
SELECT DISTINCT ?internalNote WHERE {
OPTIONAL { <{{ uri }}> ubbont:internalNote ?internalNote .}
}
types/bibo__Newspaper/queries/main.query
deleted
100755 → 0
View file @
94e9830c
SELECT DISTINCT ?title ?created ?available ?identifier WHERE {
<{{ uri }}> rdfs:label|dct:title ?title .
OPTIONAL { <{{ uri }}> dct:identifier ?identifier . }
OPTIONAL { <{{ uri }}> dct:created ?created .}
OPTIONAL { <{{ uri }}> dct:available ?available .}
}
types/bibo__Newspaper/queries/maker.query
deleted
100755 → 0
View file @
94e9830c
SELECT DISTINCT ?maker ?makerName WHERE {
OPTIONAL { <{{ uri|deurifier }}> foaf:maker ?maker . ?maker foaf:name ?makerName .}
}
types/bibo__Newspaper/queries/physicalcondition.query
deleted
100755 → 0
View file @
94e9830c
SELECT DISTINCT ?physicalCondition WHERE {
OPTIONAL { <{{ uri }}> ubbont:physicalCondition ?physicalCondition .}
}
types/bibo__Newspaper/queries/physicaldescription.query
deleted
100755 → 0
View file @
94e9830c
SELECT DISTINCT ?physicalDescription WHERE {
OPTIONAL { <{{ uri }}> ubbont:physicalDescription ?physicalDescription .}
}
types/bibo__Newspaper/queries/places.query
deleted
100755 → 0
View file @
94e9830c
SELECT DISTINCT ?place ?placeName ?lat ?long WHERE {
OPTIONAL { <{{ uri|deurifier }}> dct:spatial ?place . ?place rdfs:label ?placeName . OPTIONAL { ?place geo:lat ?lat ; geo:long ?long .}}
}
types/bibo__Newspaper/queries/po.query
deleted
100755 → 0
View file @
94e9830c
SELECT ?p ?o WHERE {
<{{uri}}> ?p ?o .
}
LIMIT 100
\ No newline at end of file
types/bibo__Newspaper/queries/recipient.query
deleted
100755 → 0
View file @
94e9830c
SELECT DISTINCT ?uri ?label WHERE {
<{{ uri }}> bibo:reciever ?uri .
OPTIONAL { ?uri foaf:name ?label . }
OPTIONAL { ?uri ubbont:invertedName ?label . }
}
types/bibo__Newspaper/queries/relatedresources.query
deleted
100755 → 0
View file @
94e9830c
SELECT DISTINCT ?uri ?label WHERE {
<{{ uri }}> dct:relation ?uri .
?uri foaf:name ?label.
}
types/bibo__Newspaper/queries/sender.query
deleted
100755 → 0
View file @
94e9830c
SELECT DISTINCT ?uri ?label WHERE {
<{{ uri }}> ubbont:sender ?uri .
OPTIONAL { ?uri foaf:name ?label . }
OPTIONAL { ?uri ubbont:invertedName ?label . }
}
types/bibo__Newspaper/queries/sp.query
deleted
100755 → 0
View file @
94e9830c
SELECT ?s ?p WHERE {
?s ?p <{{uri}}> .
}
LIMIT 100
\ No newline at end of file
types/bibo__Newspaper/queries/subjects.query
deleted
100755 → 0
View file @
94e9830c
SELECT DISTINCT ?subject ?subjectLabel WHERE {
<{{ uri }}> dct:subject ?subject .
?subject skos:prefLabel ?subjectLabel ; a skos:Concept .
OPTIONAL { ?subject rdfs:label ?subjectLabel ; a skos:Concept .}
}
Write
Preview
Markdown
is supported
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