{
  "identifier": "http://rs.tdwg.org/dwc-dp/1.0/material-reference",
  "dcterms:isPartOf": "http://www.tdwg.org/standards/450",
  "url": "table-schemas/material-reference.json",
  "name": "material-reference",
  "title": "Material Reference",
  "description": "A dcterms:BibliographicResource related to a dwc:MaterialEntity.",
  "notes": "",
  "examples": "",
  "namespace": "",
  "dcterms:isVersionOf": "http://example.com/term-pending//material-reference",
  "fields": [
    {
      "name": "reference_fk",
      "title": "Reference (Foreign Key)",
      "description": "An identifier for a dcterms:BibliographicResource.",
      "notes": "The value in this field MAY be changed in aggregation to preserve the relationship to the related primary key.",
      "examples": "",
      "type": "string",
      "format": "default",
      "namespace": "dwc",
      "dcterms:isVersionOf": "http://rs.tdwg.org/dwc/terms/referenceID",
      "constraints": {
        "required": false,
        "unique": false
      }
    },
    {
      "name": "materialEntity_fk",
      "title": "Material Entity (Foreign Key)",
      "description": "An identifier for a dwc:MaterialEntity.",
      "notes": "The value in this field MAY be changed in aggregation to preserve the relationship to the related primary key.",
      "examples": "",
      "type": "string",
      "format": "default",
      "namespace": "dwc",
      "dcterms:isVersionOf": "http://rs.tdwg.org/dwc/terms/materialEntityID",
      "constraints": {
        "required": true,
        "unique": false
      }
    },
    {
      "name": "relationshipType",
      "title": "Relationship Type",
      "description": "A relationship of a subject resource to a dcterms:BibliographicResource.",
      "notes": "Recommended best practice is to use a controlled vocabulary.",
      "examples": "`cited in`; `referenced`",
      "type": "string",
      "format": "default",
      "namespace": "dwc",
      "dcterms:isVersionOf": "http://rs.tdwg.org/dwc/terms/relationshipOfResource"
    }
  ],
  "foreignKeys": [
    {
      "fields": "reference_fk",
      "predicate": "mentioned in",
      "reference": {
        "resource": "bibliographic-resource",
        "fields": "reference_pk"
      }
    },
    {
      "fields": "materialEntity_fk",
      "predicate": "mentioned",
      "reference": {
        "resource": "material",
        "fields": "materialEntity_pk"
      }
    }
  ]
}
