0.1.2 • Published 8 months ago

housemd v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

housemd

This package contains an RDF dataset about people, places, and events of the TV series House.

Usage

The content of the dataset is available in different formats.

N-Quads

A N-Quads representation of the complete dataset can be found at dist/housemd.nq. The base IRI of each file Turtle file is used for the named graph.

N-Triples

A N-Triples representation of the complete dataset can be found at dist/housemd.nt.

RDF/JS builder

The index.js file contains JavaScript code that builds an array of RDF/JS quad objects. A DataFactory implementation must be given as factory argument. That factory will be used to build the terms and quads. The example below shows how to import the quads into a dataset using rdf-ext:

import housemd from 'housemd'
import rdf from 'rdf-ext'

const dataset = rdf.dataset(housemd({ factory: rdf }))

The default export returns an array of quads with the graph matching the resource. The triples export is available for use cases requiring triples (quads with default graph). The function accepts the same arguments as the default export. The example below shows how to import the triples into a dataset using rdf-ext:

import { triples as housemdTriples } from 'housemd'
import rdf from 'rdf-ext'

const dataset = rdf.dataset(housemdTriples({ factory: rdf }))

Turtle

The original data is maintained in the folder data in multiple Turtle files. Each resource is stored in a separate file. The relative path and the filename without extension must be used as baseIRI. The links of the containers like in /person/ are missing in the Turtle files. All of that is handled in the build step for the other formats. That's why most people may prefer one of the alternatives.

0.1.2

8 months ago

0.1.1

8 months ago

0.1.0

2 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago