Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scope 2.0 #100

Closed
stansmith907 opened this issue Oct 14, 2016 · 9 comments
Closed

scope 2.0 #100

stansmith907 opened this issue Oct 14, 2016 · 9 comments
Labels
enhancement Improve or modify an existing feature
Milestone

Comments

@stansmith907
Copy link
Contributor

stansmith907 commented Oct 14, 2016

"scope" implements MD_Scope which is a new class used in many other classes throughout -1. Definition: "the target resource and physical extent for which information is reported".

Definitions:

  • "scopeCode": "target resource covered".
  • "scopeDescription": "detailed description/listing of the items specified by the scope".
  • "scopeExtent: "information about the horizontal, vertical and temporal extent of the resource specified by the scope."

Changes:

  1. "scopeCode" is a required element of type MD_ScopeCode. This was the only element in the mdJson 1.0 implementation.
{
   "scope": {
      "scopeCode": "MD_ScopeCode",
      "scopeDescription": [
         {
            "see": "scopeDescription 2.0"
         }
      ],
      "scopeExtent": [
         {
            "see": "extent 2.0"
         }
      ]
   }
}

see ISO XML example useConstraint -3.xml

This was referenced Oct 14, 2016
@stansmith907 stansmith907 added the enhancement Improve or modify an existing feature label Oct 14, 2016
@stansmith907 stansmith907 added this to the 2.0 milestone Oct 14, 2016
@jlblcc
Copy link
Member

jlblcc commented Oct 14, 2016

Can we change scopeDescription to:

"scopeDescription": [
    {
        "type": "dataset|attribute|feature|other",
        "description": ""
     }
]

Type can be an enum, if necessary. Or we can leave as free-text with codelist and handle in the writers.

@stansmith907
Copy link
Contributor Author

The scopeDescription object has been changed as suggested.

@stansmith907
Copy link
Contributor Author

I also changed the roleExtent to timePeriod as per the discussion on issue #52.

jlblcc added a commit that referenced this issue Jan 21, 2017
@stansmith907
Copy link
Contributor Author

stansmith907 commented Feb 15, 2017

If we follow ISO the following would become our scope object. Now the we have it out-of-the-way of resource and associated with constraint, lineage, source, processStep, and maintenance scope becomes a means of limiting or constraining the block to a subset of the total resource. Note: scope is an array only in maintenance. We could probably get by with making this a single object.

Let me know if you agree and are on board with changing scope to the following.

{
   "scope": [
      {
         "scopeCode": "MD_ScopeCode",
         "scopeDescription": [
            {
               "dataset": "",
               "attributes": "",
               "features": "",
               "other": ""
            }
         ],
         "sourceExtent": [
            {
               "see": "extent 2.0"
            }
         ]
      }
   ]
}

@jlblcc
Copy link
Member

jlblcc commented Feb 15, 2017

I'm fine with this.

This was referenced Feb 15, 2017
@jlblcc
Copy link
Member

jlblcc commented Feb 15, 2017

One question. Does it make sense to have scopeDescription as an array?

@stansmith907
Copy link
Contributor Author

Not entirely, just being loyal to ISO. However with the array I can see the potential to group attributes and features to a dataset.

@jlblcc
Copy link
Member

jlblcc commented Feb 16, 2017

What makes me question that is the use of plural attributes and features.

@jlblcc
Copy link
Member

jlblcc commented Feb 16, 2017

Shouldn't that be scopeExtent?

jlblcc added a commit that referenced this issue Feb 16, 2017
jlblcc added a commit that referenced this issue Feb 17, 2017
@stansmith907 stansmith907 mentioned this issue Feb 25, 2017
19 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improve or modify an existing feature
Projects
None yet
Development

No branches or pull requests

2 participants