{"id":16694031,"url":"https://github.com/haoliangyu/w3c-dcat","last_synced_at":"2026-02-13T10:02:46.259Z","repository":{"id":57148508,"uuid":"112940901","full_name":"haoliangyu/w3c-dcat","owner":"haoliangyu","description":"A utility library to create and convert dataset metadata with W3C DCAT in JSON","archived":false,"fork":false,"pushed_at":"2018-04-15T15:51:06.000Z","size":240,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-10T20:06:53.895Z","etag":null,"topics":["dcat","interoperation","json","utility-library","w3c"],"latest_commit_sha":null,"homepage":"https://haoliangyu.github.io/w3c-dcat","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/haoliangyu.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-03T15:47:01.000Z","updated_at":"2023-03-08T03:05:38.000Z","dependencies_parsed_at":"2022-08-31T20:02:20.980Z","dependency_job_id":null,"html_url":"https://github.com/haoliangyu/w3c-dcat","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haoliangyu%2Fw3c-dcat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haoliangyu%2Fw3c-dcat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haoliangyu%2Fw3c-dcat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haoliangyu%2Fw3c-dcat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/haoliangyu","download_url":"https://codeload.github.com/haoliangyu/w3c-dcat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225381079,"owners_count":17465441,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dcat","interoperation","json","utility-library","w3c"],"created_at":"2024-10-12T16:43:31.775Z","updated_at":"2026-02-13T10:02:41.233Z","avatar_url":"https://github.com/haoliangyu.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# w3c-dcat\n\n[![Build Status](https://travis-ci.org/haoliangyu/w3c-dcat.svg?branch=master)](https://travis-ci.org/haoliangyu/w3c-dcat)\n\nA utility library to create and convert [W3C DCAT](https://www.w3.org/TR/vocab-dcat/) in JSON.\n\nPrimarily developed for [SingularData.net](https://github.com/SingularData/SingularData.net)\n\n## Installation\n\n``` bash\nnpm install w3c-dcat\n```\n\n## Use\n\nSupport DCAT spec:\n  * [Dataset](https://www.w3.org/TR/vocab-dcat/#class-dataset)\n\n``` javascript\nimport { Dataset } from 'w3c-dcat';\n\n// create a new dataset class\nconst datasetA = new Dataset();\n\n// create a new dataset with predefined value\nconst datasetB = new Dataset({ title: 'New Dataset' });\n\n// extend the dataset metadata with an key-value object\ndatasetA.set({ title: 'New Name' });\n\n// get property value\nconsole.log(datasetA.title);\n\n// get a JSON copy of the dataset metadata\nconsole.log(datasetB.toJSON())\n\n// get a DCAT datset class from other open data vendor's\n// dataset metadata\nconst datasetC = Dataset.from('ArcGIS', metadata)\n\n```\n\n[TypeScript](https://www.typescriptlang.org/) is natively supported. For more examples, please see [tests](https://github.com/haoliangyu/w3c-dcat/blob/master/test/index.test.ts) and [documentation](https://haoliangyu.github.io/w3c-dcat/).\n\n### Supported Vendor\n\n`w3c-dcat` is able to convert dataset metadata from the following open data vendors:\n* [ArcGIS](https://hub.arcgis.com/pages/open-data) (v2 API)\n* [CKAN](https://ckan.org/) (v3 API)\n* [DKAN](https://getdkan.org/)\n* [GeoNode](http://geonode.org/)\n* [Junar](https://junar.github.io/docs/en) (v2 API)\n* [OpenDataSoft](https://www.opendatasoft.com/) (v2 API)\n* [Socrata](https://socrata.com/solutions/open-data-citizen-engagement/) (v1 API)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaoliangyu%2Fw3c-dcat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaoliangyu%2Fw3c-dcat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaoliangyu%2Fw3c-dcat/lists"}