Extend api:labelledConceptViewer?

13 views
Skip to first unread message

Richard Walker

unread,
May 17, 2015, 11:04:08 PM5/17/15
to linked-data...@googlegroups.com
Hi, for a SKOS application I'm trying to extend the labelledDescribeViewer to show
prefLabels for narrower and broader concepts.

I tried defining a viewer like this:

myapi:labelledConceptViewer a api:Viewer
    ; api:name "concept_labelled"
    ; api:include api:labelledDescribeViewer
    ; api:property
      ( skos:broader skos:prefLabel ),
      ( skos:narrower skos:prefLabel )
    .

But it seems api:include doesn't work for builtin viewers ... at least, it's not working for me;
this viewer shows _only_ the labels of broader and narrower terms.

How do I achieve what I'm after?

Richard.

Richard Walker

unread,
Jul 9, 2015, 10:42:14 PM7/9/15
to linked-data...@googlegroups.com

No solution possible?

More specifically, I have got this page working nicely now:

http://vocabs.ands.org.au/repository/api/lda/imos/aodn-organisation/current/concept

but for resource pages, based on api:labelledDescribeViewer, it seems I have to settle for this:

http://vocabs.ands.org.au/repository/api/lda/imos/aodn-organisation/current/resource?uri=http://vocab.aodn.org.au/organisation/entity/9

I.e., without prefLabels for broader and narrower terms.
How do I get the latter page to show all the stuff currently being displayed by
api:labelledDescribeViewer _and also_ to show the prefLabels for broader and narrower terms?

Richard.

chris dollin

unread,
Jul 10, 2015, 3:51:50 AM7/10/15
to linked-data-api-discuss
Hi Richard

I'll look into this shortly. Sorry I missed it the first
time round.
> --
> You received this message because you are subscribed to the Google Groups
> "linked-data-api-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to linked-data-api-d...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Chris "allusive" Dollin

chris dollin

unread,
Jul 10, 2015, 5:50:39 AM7/10/15
to linked-data-api-discuss
Richard said:

>> But it seems api:include doesn't work for builtin viewers ...

Looks like it's a bug. I've created issue #146 for it. Fixing it
should be only slightly tricky, but it's possible there are users
who depend on the existing behaviour.

Chris

--
Chris "allusive" Dollin
Reply all
Reply to author
Forward
0 new messages