Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jimsmart/iri

iri is a Go package providing IRI constants for common RDF namespaces.
https://github.com/jimsmart/iri

common-rdf-namespaces const go iri rdf

Last synced: 3 months ago
JSON representation

iri is a Go package providing IRI constants for common RDF namespaces.

Awesome Lists containing this project

README

        

# iri

iri is a [Go](https://golang.org) package providing IRI constants for common RDF namespaces.

More than 99% of this package is machine-generated from ontologies.

Remember: Go doesn't include unreferenced consts in the build output.

Note: the full set of consts for DBpedia and Schema.org have been effectively 'commented out' (their files have been renamed to `_gen_dbo.go` and `_gen_schema.go`). This is because when they were included in the package they slowed my text editor's autocomplete to a crawl.

## Installation
```bash
$ go get github.com/jimsmart/iri
```

```go
import "github.com/jimsmart/iri"
```

## Example

```go
import "github.com/jimsmart/iri"

x := iri.FOAF_knows
y := iri.RDFS_Class
z := iri.DCE_title
a := iri.RDF_type
```

## License

Package iri is copyright 2017-2023 by Jim Smart and released under the [MIT License](LICENSE.md)