https://github.com/entitizer/entity-mapper-js
Entity mapper nodejs module
https://github.com/entitizer/entity-mapper-js
entitizer entity entity-mapper
Last synced: 4 months ago
JSON representation
Entity mapper nodejs module
- Host: GitHub
- URL: https://github.com/entitizer/entity-mapper-js
- Owner: entitizer
- Created: 2017-08-21T21:06:01.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-02-28T11:28:25.000Z (over 8 years ago)
- Last Synced: 2025-08-09T05:38:17.794Z (10 months ago)
- Topics: entitizer, entity, entity-mapper
- Language: JavaScript
- Size: 345 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# entitizer.entity-mapper
Entitizer entity mapper module.
## Usage
```
import { getEntities } from 'wiki-entity';
import { fromWikiEntity } from 'entitizer.entity-mapper';
const language = 'en';
// get Europe by title
getEntities({ language, titles: 'Europe' })
.then(entities => {
const wikiEntity = entities[0];
// convert WikiEntity to an Entitizer Entity
const entity = fromWikiEntity(wikiEntity, language);
});
```