Module
Metajelo.Types
- Package
- purescript-metajelo
- Repository
- labordynamicsinstitute/purescript-metajelo
This module is derived from the schema of metajelo, and more directly from the output of XsdToHaskell being run on the schema.
#MetajeloRecord Source
type MetajeloRecord = { date :: XsdDate, identifier :: Identifier, lastModified :: XsdDate, relatedIdentifiers :: NonEmptyArray RelatedIdentifier, supplementaryProducts :: NonEmptyArray SupplementaryProduct }
metadata about the publication and links to unlimited number of suppementary products
#BaseId Source
type BaseId otherField = { id :: String, idType :: IdentifierType | otherField }
#Identifier Source
type Identifier = BaseId ()
#ResourceID Source
type ResourceID = Identifier
#InstitutionID Source
type InstitutionID = ResourceID
#RelatedIdentifier Source
type RelatedIdentifier = BaseId (relType :: RelationType)
#IdentifierType Source
#allIdentifierTypes Source
allIdentifierTypes :: forall u. Unfoldable1 u => u IdentifierType
#SupplementaryProduct Source
type SupplementaryProduct = { basicMetadata :: BasicMetadata, format :: Array Format, location :: Location, resourceID :: Maybe ResourceID, resourceMetadataSource :: Maybe ResourceMetadataSource, resourceType :: ResourceType }
#BasicMetadata Source
type BasicMetadata = { creator :: String, publicationYear :: XsdDate, title :: String }
#ResourceType Source
type ResourceType = { description :: String, generalType :: ResourceTypeGeneral }
#ResourceTypeGeneral Source
data ResourceTypeGeneral
The general type of a resource.
Constructors
Audiovisual
Dataset
Event
Image
InteractiveResource
Model
PhysicalObject
ResourceCollection
Service
Software
Sound
Text
Workflow
Other
Instances
#allResourceTypeGenerals Source
allResourceTypeGenerals :: forall u. Unfoldable1 u => u ResourceTypeGeneral
#ResourceMetadataSource Source
type ResourceMetadataSource = { relationType :: RelationType, url :: URL }
#RelationType Source
data RelationType
Description of the relationship of the resource being
Constructors
IsCitedBy
Cites
IsSupplementTo
IsSupplementedBy
IsContinuedBy
Continues
IsNewVersionOf
IsPreviousVersionOf
IsPartOf
HasPart
IsReferencedBy
References
IsDocumentedBy
Documents
IsCompiledBy
Compiles
IsVariantFormOf
IsOriginalFormOf
IsIdenticalTo
HasMetadata
IsMetadataFor
Reviews
IsReviewedBy
IsDerivedFrom
IsSourceOf
Instances
#allRelationTypes Source
allRelationTypes :: forall u. Unfoldable1 u => u RelationType
#Location Source
type Location = { institutionContact :: InstitutionContact, institutionID :: InstitutionID, institutionName :: String, institutionPolicies :: NonEmptyArray InstitutionPolicy, institutionSustainability :: InstitutionSustainability, institutionType :: InstitutionType, superOrganizationName :: Maybe String, versioning :: Boolean }
#allInstitutionTypes Source
allInstitutionTypes :: forall u. Unfoldable1 u => u InstitutionType
#InstitutionContact Source
type InstitutionContact = { contactType :: Maybe InstitutionContactType, emailAddress :: EmailAddress }
#allInstitutionContactTypes Source
allInstitutionContactTypes :: forall u. Unfoldable1 u => u InstitutionContactType
#InstitutionSustainability Source
type InstitutionSustainability = { fundingStatementURL :: URL, missionStatementURL :: URL }
#allPolicyTypes Source
allPolicyTypes :: forall u. Unfoldable1 u => u PolicyType
#InstitutionPolicy Source
type InstitutionPolicy = { appliesToProduct :: Maybe Boolean, policy :: Policy, policyType :: Maybe PolicyType }