sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Desruisseaux (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SIS-298) Simplification in MetadataTreeFormat output
Date Wed, 14 Oct 2015 09:17:05 GMT
Martin Desruisseaux created SIS-298:
---------------------------------------

             Summary: Simplification in MetadataTreeFormat output
                 Key: SIS-298
                 URL: https://issues.apache.org/jira/browse/SIS-298
             Project: Spatial Information Systems
          Issue Type: Improvement
          Components: Metadata
    Affects Versions: 0.6, 0.5, 0.4, 0.3
            Reporter: Martin Desruisseaux
            Priority: Minor
             Fix For: 0.7


We could simplify and clarify a little bit the tree produced by the {{MetadataTreeFormat}}
by using two additional rules:

h3. Use less lines in simple case
If a property has the same name than the parent property that contains it, we could write
its value in that parent property. For example instead of:

{noformat}
Citation
 └─Date
    ├─Date…………………… 2012/01/01
    └─Date type …… Creation
{noformat}

We could simplify as:

{noformat}
Citation
 └─Date…………………………… 2012/01/01
    └─Date type …… Creation
{noformat}


h3. Tell the sub-type
If a property has the same name than the value type, and if that value type has sub-type,
we could format the actual value sub-type in the tree. For example {{Citation}} as a property
named {{party}} of type {{Party}} (ignoring multi-occurrences). But {{Party}} has two sub-types:
{{Individual}} and {{Organisation}}. So instead of:

{noformat}
Citation
 └─Cited responsible party
    └─Party
       └─Name ……………………………… Jon Smith
{noformat}

It would be helpful to format:


{noformat}
Citation
 └─Cited responsible party
    └─Individual
       └─Name ……………………………… Jon Smith
{noformat}




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message