npm · JSON-LD Context

Npm Context

JSON-LD context defining the semantic vocabulary for Npm from npm.

0 Classes 8 Properties 5 Namespaces
View Context View on GitHub

Namespaces

npm: https://registry.npmjs.org/
schema: https://schema.org/
xsd: http://www.w3.org/2001/XMLSchema#
dcterms: http://purl.org/dc/terms/
spdx: http://spdx.org/licenses/

Properties

Property Type Container
Package
PackageVersion
Person
Organization
Distribution
HookSubscription
AccessToken
TrustedPublisher

JSON-LD Document

Raw ↑
{
  "@context": {
    "@version": 1.1,
    "npm": "https://registry.npmjs.org/",
    "schema": "https://schema.org/",
    "xsd": "http://www.w3.org/2001/XMLSchema#",
    "dcterms": "http://purl.org/dc/terms/",
    "spdx": "http://spdx.org/licenses/",

    "Package": {
      "@id": "schema:SoftwareSourceCode",
      "@context": {
        "name": "schema:name",
        "description": "schema:description",
        "version": "schema:version",
        "keywords": "schema:keywords",
        "homepage": {
          "@id": "schema:url",
          "@type": "@id"
        },
        "license": {
          "@id": "schema:license",
          "@type": "@id"
        },
        "author": "schema:author",
        "maintainers": {
          "@id": "schema:maintainer",
          "@container": "@set"
        },
        "repository": {
          "@id": "schema:codeRepository",
          "@type": "@id"
        },
        "created": {
          "@id": "dcterms:created",
          "@type": "xsd:dateTime"
        },
        "modified": {
          "@id": "dcterms:modified",
          "@type": "xsd:dateTime"
        },
        "dependencies": {
          "@id": "schema:softwareRequirements",
          "@container": "@set"
        },
        "devDependencies": {
          "@id": "npm:devDependencies",
          "@container": "@set"
        },
        "peerDependencies": {
          "@id": "npm:peerDependencies",
          "@container": "@set"
        }
      }
    },

    "PackageVersion": {
      "@id": "schema:SoftwareSourceCode",
      "@context": {
        "name": "schema:name",
        "version": "schema:version",
        "description": "schema:description",
        "main": "npm:main",
        "tarball": {
          "@id": "schema:downloadUrl",
          "@type": "@id"
        },
        "shasum": "npm:shasum",
        "integrity": "npm:integrity",
        "fileCount": "npm:fileCount",
        "unpackedSize": {
          "@id": "schema:fileSize",
          "@type": "xsd:integer"
        },
        "deprecated": "npm:deprecated",
        "publishedAt": {
          "@id": "schema:datePublished",
          "@type": "xsd:dateTime"
        }
      }
    },

    "Person": {
      "@id": "schema:Person",
      "@context": {
        "name": "schema:name",
        "email": "schema:email",
        "url": {
          "@id": "schema:url",
          "@type": "@id"
        }
      }
    },

    "Organization": {
      "@id": "schema:Organization",
      "@context": {
        "name": "schema:name",
        "scope": "npm:scope",
        "members": {
          "@id": "schema:member",
          "@container": "@set"
        }
      }
    },

    "Distribution": {
      "@id": "schema:DataDownload",
      "@context": {
        "tarball": {
          "@id": "schema:contentUrl",
          "@type": "@id"
        },
        "shasum": "npm:shasum",
        "integrity": "npm:integrity",
        "fileCount": "npm:fileCount",
        "unpackedSize": {
          "@id": "schema:contentSize",
          "@type": "xsd:integer"
        }
      }
    },

    "HookSubscription": {
      "@id": "npm:HookSubscription",
      "@context": {
        "type": "npm:hookType",
        "name": "npm:watchedEntity",
        "endpoint": {
          "@id": "npm:endpoint",
          "@type": "@id"
        },
        "created": {
          "@id": "dcterms:created",
          "@type": "xsd:dateTime"
        },
        "updated": {
          "@id": "dcterms:modified",
          "@type": "xsd:dateTime"
        }
      }
    },

    "AccessToken": {
      "@id": "npm:AccessToken",
      "@context": {
        "key": "npm:tokenKey",
        "readonly": "npm:readonly",
        "automation": "npm:automation",
        "cidr_whitelist": {
          "@id": "npm:cidrWhitelist",
          "@container": "@set"
        },
        "created": {
          "@id": "dcterms:created",
          "@type": "xsd:dateTime"
        }
      }
    },

    "TrustedPublisher": {
      "@id": "npm:TrustedPublisher",
      "@context": {
        "provider": "npm:ciProvider",
        "repository_owner": "npm:repositoryOwner",
        "repository": "npm:repository",
        "workflow_filename": "npm:workflowFilename",
        "environment": "npm:deploymentEnvironment",
        "created": {
          "@id": "dcterms:created",
          "@type": "xsd:dateTime"
        }
      }
    }
  }
}