TNS Internal:NDR/API/2.0/DataAnalysis/patternsNSDLCollections/CMgmt

From NSDLWiki

Jump to: navigation, search

Contents

[hide]

PATTERN: NSDL Collection Management (CMgmt)

CAgg CMDP OAgent CR M M-MDP Extra Parent
X X X X CMgmt


How to identify this pattern?

  • Get M with Query: * <http://ns.nsdl.org/api/relationships#metadataFor> <info:fedora/hdl:2200%2F__AGGREGATOR_HANDLE__>
  • Get M-MDP with Query: <info:fedora/hdl:2200%2F__METADATA_HANDLE__> <http://ns.nsdl.org/api/relationships#metadataProvidedBy> <info:fedora/nsdl:3004>
  • If M-MDP query has results, then this pattern has been met.


Actual Query:

  SELECT t5.o, t5.s, t17.o, t18.s, t18.o
  FROM (t5 JOIN t17 ON t5.s = t17.o)
  JOIN t18 
  ON t17.s = t18.s
  WHERE t5.o = '"Aggregator"' AND t18.o = '<info:fedora/nsdl:3004>'
  LIMIT 2000;

RESULTS: 790


Query with English interpretation's included:  (won't run)

  SELECT t5.o(objectType), t5.s(CAggr), t17.o(CAggr), t18.s(M), t18.o(MDP)
  FROM (t5(objectType_table) JOIN t17(metadataFor_table) ON t5.s(CAggr) = t17.o(CAggr))
  JOIN t18(metadataProvidedBy_table) 
  ON t17.s(M) = t18.s(M)
  WHERE t5.o(objectType) = '"Aggregator"' AND t18.o(MDP) = '<info:fedora/nsdl:3004>'(CMgmt_MDP_handle)
  LIMIT 2000;


Parts of existing objects

Legend:

  used as part of v2.0 objects; surfaced through v2.0 get calls
  available in separate metadata object about the collection
  not available via v2.0 calls
  Deprecated - won't be created or used going forward


Name Path Example Value Use in 2.0 Comments
Collection Aggregator (CAggr)
properties
crs:collectionID oai:crs.nsdl.org:4781 created by harvest ingest???
datastreams
DC
dc:title Aggregator object for hdl:2200%2F2006...
dc:identifier hdl:2200%2F2006...
serviceDescription -- DEPRECATED
dc:title Sun-Earth Connection Education Aggregation DEPRECATED
dc:identifier Collection of Sun-Earth... items DEPRECATED
dc:type Aggregator DEPRECATED
image brandURL, title, width, height DEPRECATED
contacts DEPRECATED NO CONTACTS
relationships
nsdl:associatedWith R handle CR
nsdl:memberOf Aggr 2200/NSDL_Collection_of_Collections_Aggregator ParentAggr parent that makes this a Library Collection
nsdl:aggregatorFor Agent handle OAgent
nsdl:authorizedToChange Agent 2200/NSDL_COLLECTION_ADMIN copy all to new Library Collection AND rename should be authorizedToBeChangedBy
Collection Metadata Provider (CMDP)
Doesn't exist; Will be created
Owner Agent (OAgent)
Used as is as OAgent
Collection Resource (CR)
properties
nsdl:hasResourceURL http://sunearth.gsfc.nasa.gov/ LC-CAggr-p:hasResourceURL; LC-CM-d:format_ndr_collection!resourceURL
datastreams
DC
dc:title NSDL Repository Resource Object
dc:identifier hdl:2200%2F2006...
content_1 redirect to resourceURL
relationships
nsdl:memberOf Aggr 2200/20080124182533611T Aggr for User Recommendations
nsdl:memberOf Aggr 2200/NSDL_Collection_of_Resources
nsdl:memberOf Aggr handle CAggr
Metadata (M)
properties
nsdl:uniqueID oai:crs.nsdl.org:4781 LC-CAggr-p:externalIdentifier; LC-CM-d:format_ndr_collection!externalIdentifier created by harvest ingest???; same as CAggr->crs:collectionID
nsdl:itemID oai:nsdl.org:crs:4781
nsdl:state Active
datastreams
DC
dc:title NSDL Repostiory Metadata
dc:identifier hdl:2200%2F2006...
dc:date 2008-04-29T14-54-34Z
format_nsdl_dc
datastream will be unchanged
dc:title Sun-Earth Connection Education LC-CAggr-p:title; LC-CM-d:format_ndr_collection!title
dc:description Sun-Earth Connection Education is... LC-CAggr-p:description; LC-CM-d:format_ndr_collection!description
relationships
nsdl:metadataProvidedBy MDP nsdl:3004 2200/NSDL_Collection_Manager_Metadata_Provider
nsdl:metadataFor Aggr handle CAggr
nsdl:metadataFor R handle CR
Metadata Provider (M-MDP) for Metadata
nsdl:3004 2200/NSDL_Collection_Manager_Metadata_Provider
datastreams
serviceDescription - DEPRECATED
dc:contacts System Programmer, systems@nsdl.org DEPRECATED
Extra Parent Aggregator
N/A


Matching Existing Data to New NDR Collection Structure

The following are the objects expected to exist for NDR Collections. There are two types of NDR Collections created for NSDL Library Collection, that is, one NDR Collection for the Library Collection and one NDR Collection each for each Metadata Source. The following identifies how each object for the two collection types will be created or converted from existing objects.


Library Collection - NDR Collection info

Name From (api call) Conversion Comments
Object Field Type Identifier/Path
Collection Aggregator
properties
title [from inputXML] M datastream format_nsdl_dc -> dc:title
description [from inputXML] M datastream format_nsdl_dc -> dc:description
hasResourceURL [from inputXML] CR property hasResourceURL
contact [from inputXML] hardcode "systems@nsdl.org (System Programmer)"
externalIdentifier [from inputXML] M property nsdl:uniqueID
datastreams
DC
dc:title
"Aggregator" hardcode "Aggregator"
dc:identifier
[handle for this object] [handle for LC-CAggr object]
relationships
collectionComponentOf [handle for this object] [handle for LC-CAggr object]
associatedWith [handle for CR] [handle for LC-CR object]
aggregatorFor [handle for OAgent] [handle for LC-OAgent object]
authorizedToChange [handle for OAgent] [handle for LC-OAgent object]
Collection Metadata Provider
properties
none
datastreams
DC
dc:title
"MetadataProvider" hardcode "MetadataProvider"
dc:identifier
[handle for this object] [handle for LC-CMDP object]
relationships
collectionComponentOf [handle for this object] [handle for LC-CAggr object]
metadataProviderFor [handle for OAgent] [handle for LC-OAgent object]
authorizedToChange [handle for OAgent] [handle for LC-OAgent object]
Collection Metadata
properties
none
datastreams
DC
dc:title
"Metadata" hardcode "Metadata"
dc:identifier
[handle for this object] [handle for LC-CM object]
format_ndr_collection
title
[from inputXML] M datastream format_nsdl_dc -> dc:title
description
[from inputXML] M datastream format_nsdl_dc -> dc:description
resourceURL
[from inputXML] CR property hasResourceURL
contacts!contact
[from inputXML] hardcode "<contacts><contact email="systems@nsdl.org" name="System Programmer" /></contacts>"
externalIdentifier
[from inputXML] M property nsdl:uniqueID
relationships
collectionComponentOf [handle for this object] [handle for LC-CAggr object]
metadataProvidedBy [handle for CMDP] [handle for LC-CMDP object]
metadataFor [handle for CAggr] [handle for LC-CAggr object]


Metadata Source - NDR Collection info

Name From (api call) Conversion Comments
Object Field Type Identifier/Path
Collection Aggregator
properties
title [from inputXML]
description [from inputXML]
hasResourceURL [from inputXML] NONE no resource for metadata source
contact [from inputXML] hardcode "systems@nsdl.org (System Programmer)"
externalIdentifier [from inputXML]
datastreams
DC
dc:title
"Aggregator" hardcode "Aggregator"
dc:identifier
[handle for this object] [handle for MS-CAggr object]
relationships
collectionComponentOf [handle for this object] [handle for MS-CAggr object]
associatedWith [handle for CR] [handle for MS-CR object]
aggregatorFor [handle for OAgent] [handle for MS-OAgent object]
authorizedToChange [handle for OAgent] [handle for MS-OAgent object]
Collection Metadata Provider
properties
none
datastreams
DC
dc:title
"MetadataProvider" hardcode "MetadataProvider"
dc:identifier
[handle for this object] [handle for MS-CMDP object]
relationships
collectionComponentOf [handle for this object] [handle for MS-CAggr object]
metadataProviderFor [handle for OAgent] [handle for MS-OAgent object]
authorizedToChange [handle for OAgent] [handle for MS-OAgent object]
Collection Metadata
properties
none
datastreams
DC
dc:title
"Metadata" hardcode "Metadata"
dc:identifier
[handle for this object] [handle for MS-CM object]
format_ndr_collection
title
[from inputXML]
description
[from inputXML]
resourceURL
[from inputXML] should match URL in CR identified by relationship associatedWith
contacts!contact
[from inputXML] hardcode "<contacts><contact email="systems@nsdl.org" name="System Programmer" /></contacts>"
externalIdentifier
[from inputXML]
relationships
collectionComponentOf [handle for this object] [handle for MS-CAggr object]
metadataProvidedBy [handle for CMDP] [handle for MS-CMDP object]
metadataFor [handle for CAggr] [handle for MS-CAggr object]


Conversion Process

Under Construction

From Agg:

  • Get OAgent with Query: <info:fedora/hdl:2200%2F__AGGREGATOR_HANDLE__> <http://ns.nsdl.org/api/relationships#aggregatorFor> *
  • Get CR with Query: <info:fedora/hdl:2200%2F__AGGREGATOR_HANDLE__> <http://ns.nsdl.org/api/relationships#associatedWith> *


Missing: CMDP

Always Missing: CM

Personal tools