{"id":48406544,"url":"https://github.com/dropbear-software/rdf_dart","last_synced_at":"2026-04-06T03:37:21.632Z","repository":{"id":341670500,"uuid":"1126880251","full_name":"dropbear-software/rdf_dart","owner":"dropbear-software","description":null,"archived":false,"fork":false,"pushed_at":"2026-03-02T20:02:11.000Z","size":1145,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-06T03:37:18.929Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dropbear-software.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-02T18:40:50.000Z","updated_at":"2026-03-02T20:02:17.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/dropbear-software/rdf_dart","commit_stats":null,"previous_names":["dropbear-software/rdf_dart"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dropbear-software/rdf_dart","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dropbear-software%2Frdf_dart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dropbear-software%2Frdf_dart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dropbear-software%2Frdf_dart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dropbear-software%2Frdf_dart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dropbear-software","download_url":"https://codeload.github.com/dropbear-software/rdf_dart/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dropbear-software%2Frdf_dart/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31458838,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"online","status_checked_at":"2026-04-06T02:00:07.287Z","response_time":112,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2026-04-06T03:37:18.285Z","updated_at":"2026-04-06T03:37:21.621Z","avatar_url":"https://github.com/dropbear-software.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RDF for Dart\n\nA comprehensive implementation of the **RDF 1.2** standard for the Dart programming language.\n\n## Overview\n\nThis package aims to provide a complete and compliant implementation of the [RDF 1.2 Concepts and Abstract Data Model](https://www.w3.org/TR/rdf12-concepts/) and related specifications. It is designed to modernize RDF support in Dart, incorporating the latest advancements from the W3C, including support for **RDF-star** (Triple Terms).\n\nThis implementation will also be fully compatible with **RDF 1.1**.\n\n## Features\n\n- **RDF 1.2 Data Model**: Full support for IRIs, Literals, Blank Nodes, and Triple Terms.\n- **Datasets**: Native support for RDF Datasets (Default Graph + Named Graphs).\n- **Strong Typing**: leveraged Dart's type system for correct RDF term representation.\n- **Modern Standards**: Built to align with specifications like `xsd:duration` and `xsd:dayTimeDuration`.\n- **Serialization**: Fully compliant RDF 1.2 Turtle and N-Triples codecs.\n\n## Usage\n\n### Turtle Serialization\n\nThe `TurtleEncoder` provides human-readable, terse output with support for prefixes, base URIs, and RDF 1.2 features like annotations and triple terms.\n\n```dart\nimport 'package:rdf_dart/rdf_dart.dart';\n\nvoid main() {\n  final s = Iri('http://example.org/alice');\n  final p = Iri('http://xmlns.com/foaf/0.1/name');\n  final o = Literal('Alice');\n\n  final triples = [Triple(subject: s, predicate: p, object: o)];\n\n  final turtle = TurtleEncoder(\n    prefixes: {'foaf': 'http://xmlns.com/foaf/0.1/', 'ex': 'http://example.org/'},\n    baseUri: 'http://example.org/',\n  ).convert(triples);\n\n  print(turtle);\n  // Output:\n  // PREFIX ex: \u003chttp://example.org/\u003e\n  // PREFIX foaf: \u003chttp://xmlns.com/foaf/0.1/\u003e\n  // \n  // ex:alice\n  //     foaf:name \"Alice\" .\n}\n```\n\n### Vocabulary Constants\n\nThe package includes type-safe `Iri` constants for standard vocabularies:\n\n- `Rdf`: Standard RDF terms (`Rdf.type`, `Rdf.nil`, `Rdf.first`, etc.)\n- `Rdfs`: RDF Schema terms (`Rdfs.label`, `Rdfs.subClassOf`, etc.)\n- `Xsd`: XML Schema datatypes (`Xsd.string`, `Xsd.integer`, `Xsd.boolean`, etc.)\n\n```dart\nimport 'package:rdf_dart/rdf_dart.dart';\n\nvoid main() {\n  final type = Rdf.type;\n  final label = Rdfs.label;\n  final integer = Xsd.integer;\n\n  print(type); // http://www.w3.org/1999/02/22-rdf-syntax-ns#type\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdropbear-software%2Frdf_dart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdropbear-software%2Frdf_dart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdropbear-software%2Frdf_dart/lists"}