mirror of
https://github.com/Babibubebon/lodfe.git
synced 2024-09-23 01:34:21 +09:00
Add rdf:type values on head of page
This commit is contained in:
parent
3b3e1acfeb
commit
cb93b40501
2 changed files with 16 additions and 6 deletions
|
@ -14,14 +14,14 @@
|
||||||
@foreach($objects as $object)
|
@foreach($objects as $object)
|
||||||
<li>
|
<li>
|
||||||
@if($object['type'] === 'uri')
|
@if($object['type'] === 'uri')
|
||||||
<a href="{{ $object['value'] }}">{{ $object['value'] }}</a>
|
<a href="{{ $object['value'] }}">{{ \EasyRdf_Namespace::shorten($object['value']) ?? $object['value'] }}</a>
|
||||||
@elseif($object['type'] === 'literal')
|
@elseif($object['type'] === 'literal')
|
||||||
{{ $object['value'] }}
|
{{ $object['value'] }}
|
||||||
@if(isset($object['lang']))
|
@if(isset($object['lang']))
|
||||||
<small>{{ '@'.$object['lang'] }}</small>
|
<small class="langtag">{{ '@'.$object['lang'] }}</small>
|
||||||
@endif
|
@endif
|
||||||
@if(isset($object['datatype']))
|
@if(isset($object['datatype']))
|
||||||
<small>^^{{ \EasyRdf_Namespace::shorten($object['datatype']) ?? $object['datatype'] }}</small>
|
<small class="datatype">^^{{ \EasyRdf_Namespace::shorten($object['datatype']) ?? $object['datatype'] }}</small>
|
||||||
@endif
|
@endif
|
||||||
@endif
|
@endif
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -4,9 +4,19 @@
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<section>
|
<header>
|
||||||
<h1>@yield('title')</h1>
|
<h1>@yield('title')</h1>
|
||||||
|
<div>
|
||||||
<code class="h5">{{ $primaryTopic }}</code>
|
<code class="h5">{{ $primaryTopic }}</code>
|
||||||
|
<div>
|
||||||
|
An Entity of Type:
|
||||||
|
<ul class="list-inline" style="display: inline">
|
||||||
|
@foreach($graph->typesAsResources($primaryTopic) as $type)
|
||||||
|
<li class="list-inline-item"><a href="{{ $type->getUri() }}">{{ $type->shorten() }}</a></li>
|
||||||
|
@endforeach
|
||||||
|
</li>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="float-right">
|
<div class="float-right">
|
||||||
<div class="dropdown">
|
<div class="dropdown">
|
||||||
|
@ -24,7 +34,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</header>
|
||||||
|
|
||||||
<table class="table table-sm mt-3">
|
<table class="table table-sm mt-3">
|
||||||
<thead>
|
<thead>
|
||||||
|
|
Loading…
Reference in a new issue