@ontologies/foaf
v2.0.0
Published
The Friend of a Friend (FOAF) RDF vocabulary, described using W3C RDF Schema and the Web Ontology Language.
Downloads
21
Maintainers
Readme
Friend of a Friend (FOAF) vocabulary ontology
This package contains the terms from the Friend of a Friend (FOAF) vocabulary ontology for JavaScript and TypeScript.
Namespace: http://xmlns.com/foaf/0.1/
Normative spec: http://xmlns.com/foaf/spec/
Source: http://xmlns.com/foaf/spec/index.rdf
About
This readme was automatically generated, for more information see the main ontologies repository.
The terms in this vocabulary are generated from their RDF representations which generally aren't the canonical definitions, please refer to the specification for their canonical definitions.
Usage
With default export
import * as foaf from '@ontologies/foaf'
console.log(foaf.vocTerm) // { termType: 'NamedNode', value: "http://xmlns.com/foaf/0.1/vocTerm" }
With named exports
import { vocTerm } from '@ontologies/foaf'
console.log(vocTerm) // { termType: 'NamedNode', value: "http://xmlns.com/foaf/0.1/vocTerm" }
Use the ns
function when missing a term or when using custom extensions
import * as foaf from '@ontologies/foaf'
console.log(foaf.ns('myTerm')) // { termType: 'NamedNode', value: "http://xmlns.com/foaf/0.1/myTerm" }
Statistics
Total term count: 75
Of which classes 13 (including data types)
Of which properties: 62
Other terms: 0