Fix rdf:type values are not displayed when the URIs don't have QName

This commit is contained in:
Babibubebon 2020-01-23 17:08:31 +09:00
parent a224d33996
commit bcf2dc1160

View file

@ -12,7 +12,9 @@
An Entity of Type: An Entity of Type:
<ul class="list-inline" style="display: inline"> <ul class="list-inline" style="display: inline">
@foreach($graph->typesAsResources($primaryTopic) as $type) @foreach($graph->typesAsResources($primaryTopic) as $type)
<li class="list-inline-item"><a href="{{ $type->getUri() }}">{{ $type->shorten() }}</a></li> <li class="list-inline-item"><a href="{{ $type->getUri() }}">
{{ $type->shorten() ?? $type->getUri() }}</a>
</li>
@endforeach @endforeach
</li> </li>
</div> </div>