Skip to content

Instantly share code, notes, and snippets.

@kspurgin
Created November 21, 2019 17:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kspurgin/d86ed177e411876401a848ae79aaed9a to your computer and use it in GitHub Desktop.
Save kspurgin/d86ed177e411876401a848ae79aaed9a to your computer and use it in GitHub Desktop.
concept_spec output
rake spec SPEC=spec/collectionspace/converter/core/concept_spec.rb
/Users/spurgin/.rvm/rubies/ruby-2.5.3/bin/ruby -I/Users/spurgin/.rvm/gems/ruby-2.5.3/gems/rspec-core-3.9.0/lib:/Users/spurgin/.rvm/gems/ruby-2.5.3/gems/rspec-support-3.9.0/lib /Users/spurgin/.rvm/gems/ruby-2.5.3/gems/rspec-core-3.9.0/exe/rspec spec/collectionspace/converter/core/concept_spec.rb
CORE CONCEPT:
<?xml version="1.0" encoding="UTF-8"?>
<document name="concepts">
<ns2:concepts_common xmlns:ns2="http://collectionspace.org/services/concept" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<conceptTermGroupList>
<conceptTermGroup>
<termDisplayName>Category 1: Colors</termDisplayName>
<termSourceID>FN4.0</termSourceID>
<termSourceNote>Changed from "Hues"; Edited definition</termSourceNote>
</conceptTermGroup>
</conceptTermGroupList>
<conceptRecordTypes>
<conceptRecordType>urn:cspace:core.collectionspace.org:vocabularies:name(concepttype):item:name(category)'category'</conceptRecordType>
</conceptRecordTypes>
<scopeNote>Definition: The color of a thing</scopeNote>
</ns2:concepts_common>
</document>
.
NOMENCLATURE CONCEPT:
<?xml version="1.0" encoding="UTF-8"?>
<document name="concepts">
<ns2:concepts_common xmlns:ns2="http://collectionspace.org/services/concept" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<conceptTermGroupList>
<conceptTermGroup>
<historicalStatus>current</historicalStatus>
<termDisplayName>Category 1: Colors</termDisplayName>
<termLanguage>urn:cspace:core.collectionspace.org:vocabularies:name(languages):item:name(english)'English'</termLanguage>
<termPrefForLang>true</termPrefForLang>
<termSource>urn:cspace:core.collectionspace.org:citationauthorities:name(citation):item:name(AASLHNomenclature2743815913)'AASLH Nomenclature'</termSource>
<termSourceID>FN4.0</termSourceID>
<termSourceNote>Changed from "Hues"; Edited definition</termSourceNote>
<termStatus>accepted</termStatus>
<termType>descriptor</termType>
</conceptTermGroup>
</conceptTermGroupList>
<conceptRecordTypes>
<conceptRecordType>urn:cspace:core.collectionspace.org:vocabularies:name(concepttype):item:name(category)'category'</conceptRecordType>
</conceptRecordTypes>
<scopeNote>Definition: The color of a thing</scopeNote>
</ns2:concepts_common>
</document>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment