Registry / serialization / easyrdf-easyrdf

easyrdf-easyrdf

JSON →
library1.1.1phppackagistunverified

EasyRdf is a PHP library designed to make it easy to consume and produce RDF.

composer require easyrdf/easyrdf
INSTALL
IMPORT
SIG · EASYRDF-EASYRDF
E
easyrdf-easyrdf
serializationphpv1.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Graph
use EasyRdf\Graph;

Create an RDF graph and add a resource, then serialize to Turtle format.

<?php\nuse EasyRdf\\Graph;\n\n$graph = new Graph('http://example.com/');\n$graph->addResource('http://example.com/subject', 'rdf:type', 'foaf:Person');\necho $graph->serialise('turtle');
Debug
Known issues
breakingPHP 8.1+ required for version 1.1.0+.
fix
Upgrade PHP to 8.1 or higher.
affects: >=1.1.0
Upgrade
Version history
1.1.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
9
Resources
easyrdf-easyrdf — pip install easyrdf-easyrdf · libregistry