RDF::Service - RDF API with DBI and other backends
use RDF::Service;
my $ns = "http://our.org/namespace/"; # Private namespace my $rdf = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"; my $rdfs = "http://uxn.nu/rdf/2000-2001/09/19/local-schema#";
my $s = new RDF::Service( $ns."S1" ); # Start session S1
# Create a new resource of type Property # my $my_prop = $s->get($ns."name")->set( [ $rdf."Property" ], { $rdfs."domain" => [ $ns."Person" ], $rdfs."range" => [ $rdfs."Literal" ], } );
# Get the domain of ns:name, as a scalar # my $domain = $s->get($ns."name")-> arc_obj($rdfs."domain")-> li->uri;
Returns a RDF::Service::Context object, representing the session.
If $uristr
is not supplied, a URI for the resoruce will be
generated.
MODEL = ls:base_model WMODEL = $self
Jonas Liljegren <jonas@paranormal.se>
http://jonas.liljegren.org/myself/en/
Copyright (C) 2000-2001 Jonas Liljegren. All Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Comments and bug reports should go to rdf@uxn.nu.
Stefan Andersson <stefan@uxn.nu>