We are currently migrating all git repositories to new storage. In the unlikely event that you attempt to write to your git repo at the exact time it is being moved, you will receive a message about your repository being write protected.

Commit ed73d7d7 authored by Øyvind gjesdal's avatar Øyvind gjesdal
Browse files

test using man made object for newspaper

parent 94e9830c
Pipeline #49021 passed with stages
in 1 minute and 39 seconds
<!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>
SELECT DISTINCT ?collection ?collectionName WHERE {
OPTIONAL { <{{ uri }}> dct:isPartOf ?collection . }
OPTIONAL { ?collection dct:title ?collectionName . }
OPTIONAL { ?collection rdfs:label ?collectionName .}
}
SELECT DISTINCT ?description WHERE {
OPTIONAL { <{{ uri }}> dct:description ?description .}
}
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
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
SELECT DISTINCT ?internalNote WHERE {
OPTIONAL { <{{ uri }}> ubbont:internalNote ?internalNote .}
}
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 .}
}
SELECT DISTINCT ?maker ?makerName WHERE {
OPTIONAL { <{{ uri|deurifier }}> foaf:maker ?maker . ?maker foaf:name ?makerName .}
}
SELECT DISTINCT ?physicalCondition WHERE {
OPTIONAL { <{{ uri }}> ubbont:physicalCondition ?physicalCondition .}
}
SELECT DISTINCT ?physicalDescription WHERE {
OPTIONAL { <{{ uri }}> ubbont:physicalDescription ?physicalDescription .}
}
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 .}}
}
SELECT ?p ?o WHERE {
<{{uri}}> ?p ?o .
}
LIMIT 100
\ No newline at end of file
SELECT DISTINCT ?uri ?label WHERE {
<{{ uri }}> bibo:reciever ?uri .
OPTIONAL { ?uri foaf:name ?label . }
OPTIONAL { ?uri ubbont:invertedName ?label . }
}
SELECT DISTINCT ?uri ?label WHERE {
<{{ uri }}> dct:relation ?uri .
?uri foaf:name ?label.
}
SELECT DISTINCT ?uri ?label WHERE {
<{{ uri }}> ubbont:sender ?uri .
OPTIONAL { ?uri foaf:name ?label . }
OPTIONAL { ?uri ubbont:invertedName ?label . }
}
SELECT ?s ?p WHERE {
?s ?p <{{uri}}> .
}
LIMIT 100
\ No newline at end of file
SELECT DISTINCT ?subject ?subjectLabel WHERE {
<{{ uri }}> dct:subject ?subject .
?subject skos:prefLabel ?subjectLabel ; a skos:Concept .
OPTIONAL { ?subject rdfs:label ?subjectLabel ; a skos:Concept .}
}
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