NAME

RDF::Service - RDF API with DBI and other backends

SYNOPSIS

  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;

PUBLIC METHODS

new($uristr)

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

AUTHOR

Jonas Liljegren <jonas@paranormal.se>

  http://jonas.liljegren.org/myself/en/

COPYRIGHT

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.

SUPPORT

Comments and bug reports should go to rdf@uxn.nu.

CREDITS

Stefan Andersson <stefan@uxn.nu>

SEE ALSO

Wraf

Context objects

Sessions

RDF::Service::Resource

RDF::Service::Context

RDF::Service::Interface