Skip to content

Generated markup does not include all properties completed #14

Description

@AlasdairGray

I completed the form for the GeneRecord profile. I included various Recommended and Optional properties. The generated markup was as follows

<script type="application/ld+json" >
{
  "@context": "http://schema.org",
  "@id": "https://www.example.com/Gene-BRCA1",
  "@type": "DataRecord",
  "dct:conformsTo": "https://bioschemas.org/profiles/DataRecord/0.2-DRAFT-2019_06_14",
  "identifier": "https://www.wikidata.org/wiki/Q227339",
  "mainEntity": {
    "@type": "Gene",
    "dct:conformsTo": "https://bioschemas.org/profiles/Gene/0.7-RELEASE",
    "identifier": "Q227339",
    "sameAs": [
      "https://meshb.nlm.nih.gov/#/record/ui?ui=D019398",
      "https://www.ncbi.nlm.nih.gov/nuccore/NR_027676",
      "http://identifiers.org/ensembl/ENSG00000012048",
      "https://www.ncbi.nlm.nih.gov/gene/672"
    ]
  },
  "sameAs": [
    "http://identifiers.org/ncbigene/672"
  ]
}
</script >

This is missing the following properties which were completed in the form: description, encodesBioChemEntity, isPartOfBioChemEntity, url, alternateName, image, taxonomicRange.

Looking at the web developer console on Firefox, I can see that it includes all the expected properties

{
  "@context": "http://schema.org",
  "@type": "DataRecord",
  "dct:conformsTo": "https://bioschemas.org/profiles/DataRecord/0.2-DRAFT-2019_06_14",
  "identifier": "https://www.wikidata.org/wiki/Q227339",
  "mainEntity": {
    "@type": "Gene",
    "dct:conformsTo": "https://bioschemas.org/profiles/Gene/0.7-RELEASE",
    "description": "protein-coding gene in the species Homo sapiens",
    "encodesBioChemEntity": [
      "https://www.wikidata.org/wiki/Q17487737"
    ],
    "identifier": "Q227339",
    "isPartOfBioChemEntity": [
      "https://www.wikidata.org/wiki/Q220677"
    ],
    "name": "BRCA1",
    "url": "https://www.wikidata.org/wiki/Q227339",
    "alternateName": [
      "breast cancer 1, early onset",
      "BRCAI",
      "BRCC1",
      "BROVCA1",
      "IRIS",
      "PNCA4",
      "PPP1R53",
      "PSCP",
      "RNF53",
      "FANCS",
      "breast cancer 1",
      "BRCA1, DNA repair associated",
      "BRCA1 DNA repair associated"
    ],
    "image": {
      "@type": "ImageObject",
      "@id": "https://upload.wikimedia.org/wikipedia/commons/thumb/e/e1/Protein_BRCA1_PDB_1jm7.png/220px-Protein_BRCA1_PDB_1jm7.png"
    },
    "taxonomicRange": [
      "https://www.wikidata.org/wiki/Q15978631"
    ],
    "sameAs": [
      "https://meshb.nlm.nih.gov/#/record/ui?ui=D019398",
      "https://www.ncbi.nlm.nih.gov/nuccore/NR_027676",
      "http://identifiers.org/ensembl/ENSG00000012048",
      "https://www.ncbi.nlm.nih.gov/gene/672"
    ]
  },
  "sameAs": [
    "http://identifiers.org/ncbigene/672"
  ],
  "@id": "https://www.example.com/Gene-BRCA1"
}

Why is the displayed generated markup not including all the properties?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions