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].
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.

Reply via email to