Good idea, Luis; we'll give it a try and report back.
This is part of our effort to build a multi-lingual Glossary of Terms.
A Glossary has Items in National Languages [English ('en-us') and Spanish
('es'), for example].
A Glossary Item is mapped to a Term in a hierarchy.
Our Glossary hierarchies also are in an NL (each Glossary hierarchy is an
NL).
The Glossary hierarchies have the same shape (following WordNet principles).
A Glossary Item is in only one NL.
If a Glossary Term has many NL instances, each is an Item and mapped to its
respective Hierarchy Term.
The problem we are experiencing is when we use Exhibit JSON "label".
When the "label" in an NL hierarchy is the same as the "label" in the NL
Glossary instance, it also appears in the Exhibit view.
In other words, when the Hierarchy NL and the Glossary item NL are
different - no problemo.
But when they are the same, the Hierarchy term appears in the Exhibit view.
Our proposal in this thread that Exhibit provide an element for Exhibit
Facet to identify the JSON field we want to use as the logical 'label' may
also solve this problem.
BBTY after experimenting with separating the Items file into different
Types, and then identifying the Types as collections.
This is something we should have done, and thank you for the advice.
/jay
On Tuesday, December 13, 2016 at 2:07:30 AM UTC-6, Luis Miguel Morillas
wrote:
>
> You can manage the different collection types of data with
>
> <div data-ex-role="exhibit-collection"
> data-ex-item-types="<type>"></div>
>
>
> Does it solve your issue?
>
>
> Saludos,
>
> -- luismiguel (@lmorillas)
>
>
> 2016-12-13 7:48 GMT+01:00 Jay Gray <[email protected] <javascript:>>:
> >
> > Here is a new version:
> > https://afdsi.org/test/gs1_v2/
> >
> > The structure is the same as version 1:
> > https://afdsi.org/test/gs1/
> >
> > A term is registered in an Exhibit hierarchy ("data-tree") and
> documented as
> > a point ("data-point").
> > In version 2, we changed "label" to "name" in the "data-tree"
> > (data_hierarchy.json) .
> > As you see, the hierarchy term is the URI for the class and property
> tree.
> >
> > Since the term from from the "data-point" file (data_item.json) uses the
> URI
> > for mapping, version 2 has the overall structure we want.
> >
> > However, we need a new attribute for "data-ex-role='exhibit-facet'".
> > To this structure:
> >
> > <div
> > data-ex-role='exhibit-facet'
> > data-ex-facet-class='Hierarchical'
> > data-ex-expression='.superclasses'
> > data-ex-uniform-grouping='.superclasses'
> > data-ex-facet-label='Classification Terms'
> > data-ex-collapsible='true'
> > data-ex-collapsed='false'
> > data-ex-scroll='false'
> >></div>
> >
> > we would like to use one of these attributes:
> > data-ex-term-content='.name'
> > data-ex-facet-term='.name'
> > data-ex-content='.name'
> > data-ex-label='.name'
> > data-ex-facet-content='.name'
> >
> > Any one of those attributes would allow us to use "name" from the
> > "data-tree" file (data_hierarchy.json) as the label for the
> > "data-ex-facet-class='Hierarchical'" when using
> > "data-ex-expression='.superclasses'" and
> > "data-ex-uniform-grouping='.superclasses'"
> >
> > How to add one of those attributes to Exhibit core?
> >
> > /jay gray
> >
> >
> > On Monday, December 12, 2016 at 3:25:51 AM UTC-6, Jay Gray wrote:
> >>
> >>
> >> We are building a glossary-of-terms.
> >> A term is registered in an Exhibit hierarchy ("data-tree") and
> documented
> >> as a point ("data-point").
> >> A data-point is mapped to data-tree using:
> >> data-ex-facet-class='Hierarchical'
> >> data-ex-expression='.superclasses'
> >> data-ex-uniform-grouping='.superclasses'
> >>
> >> We're using the term "data-point" here so it doesn't get conflated with
> >> the term "items" from Exhibit JSON files.
> >>
> >> Here is the example:
> >> https://afdsi.org/test/gs1/
> >>
> >> Our problem is that "data-tree" terms also appears on the
> >> 'exhibit-viewPanel'.
> >> For example, Exhibit reports that there are 1646 Items.
> >> However, there are only 823 items in the 'data_items.json' file.
> >> Terms from the tree ("data-tree") are the even numbered Items on the
> >> 'exhibit-viewPanel'.
> >> Furthermore, many "data-tree" entries also are classified as "other" in
> >> the Exhibit hierarchy.
> >> From our perspective, there should be zero "others".
> >>
> >> How can we suppress the display of a "data-tree" term on the
> >> 'exhibit-viewPanel' so that the number of Exhibit Items equals the
> number of
> >> "data-points" (the terms with properties such as "Name", "Description"
> and
> >> "Link")?
> >>
> >> Or, is there a better way to implement a glossary-of-terms?
> >> Do we need to change the underlying JSON structure so that terms with
> >> properties are displayed on the 'exhibit-viewPanel' and also are mapped
> to
> >> themselves (the same term in the Exhibit hierarchy)?
> >>
> >> Thanks in advance for help here.
> >>
> >> /jay gray
> >>
> >>
> > --
> > You received this message because you are subscribed to the Google
> Groups
> > "SIMILE Widgets" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> an
> > email to [email protected] <javascript:>.
> > To post to this group, send email to [email protected]
> <javascript:>.
> > Visit this group at https://groups.google.com/group/simile-widgets.
> > For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"SIMILE Widgets" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/simile-widgets.
For more options, visit https://groups.google.com/d/optout.