mirror of
https://github.com/Babibubebon/lodfe.git
synced 2024-09-22 17:34:19 +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)
|
||||
<li>
|
||||
@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')
|
||||
{{ $object['value'] }}
|
||||
@if(isset($object['lang']))
|
||||
<small>{{ '@'.$object['lang'] }}</small>
|
||||
<small class="langtag">{{ '@'.$object['lang'] }}</small>
|
||||
@endif
|
||||
@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
|
||||
</li>
|
||||
|
|
|
@ -4,9 +4,19 @@
|
|||
@endsection
|
||||
|
||||
@section('content')
|
||||
<section>
|
||||
<header>
|
||||
<h1>@yield('title')</h1>
|
||||
<div>
|
||||
<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="dropdown">
|
||||
|
@ -24,7 +34,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</header>
|
||||
|
||||
<table class="table table-sm mt-3">
|
||||
<thead>
|
||||
|
|
Loading…
Reference in a new issue