Commits

Konstantin Baierer committed c104381

more docs

  • Participants
  • Parent commits 3826063

Comments (0)

Files changed (4)

File lib/MooseX/Semantic/Role/RdfBackend.pm

 
 =head1 METHODS
 
-=head2 C<new_from_store( $uri )>
+=head2 new_from_store
+
+C<new_from_store( $uri )>
 
 Searches the RDF store for a resource C<$uri> and tries to instantiate an object
 using the C<new_from_model> method of L<MooseX::Semantic::Role::RdfImport>.
     return $cls->new_from_model( $model, $uri );
 }
 
-=head2 C<store()>
+=head2 store
 
 Exports an instance to RDF into the model underlying the RDF store.
 

File lib/MooseX/Semantic/Role/RdfExport.pm

 
 =cut
 
-=head2 C<export_to_model($model, %opts)>
+=head2 export_to_model
+
+C<export_to_model($model, %opts)>
 
 Exports the object to RDF in model C<$model>. 
 
     return $serializer;
 }
 
-=head2 C<export_to_string( %opts )>
+=head2 export_to_string
+
+C<export_to_string( %opts )>
 
 For C<%opts>, see L<EXPORT OPTIONS> below.
 

File lib/MooseX/Semantic/Role/RdfImport.pm

     return $inst_hash;
 }
 
+=head2 C<new_from_web( $uri )>
+
+Retrieves the remote graph C<$uri> using
+L<RDF::Trine::Parser's|RDF::Trine::Parser> C<parse_url_into_model> method and
+tries to create a new instance from the statements found. 
+
+=cut
+
 sub new_from_web {
     my $cls = shift;
     my ($uri) = @_;

File lib/MooseX/Semantic/Role/RdfImportAll.pm

 
 =cut
 
-=head2 C<import_all_from_model( $model, %opts )>
+=head2 import_all
 
-Imports all resources from C<$model>.
+C<import_all( %opts )>
 
 For C<%opts> see L<IMPORT OPTIONS> below.
 
     confess "Must specify either 'uri' or 'model' to 'import_all'";
 }
 
+=head2 import_all_from_model
+
+C<import_all_from_model( $model, %opts )>
+
+Imports all resources from C<$model>.
+
+For C<%opts> see L<IMPORT OPTIONS> below.
+
+=cut
+
 sub import_all_from_model {
     my ($class, $model, %opts ) = @_;
     my @rdf_types = $class->_get_rdf_types_from_opts_or_class(%opts);
     @return;
 }
 
+=head2 import_all_from_web
+
+C<import_all_from_web( $uris, %opts )>
+
+TODO
+
+For C<%opts> see L<IMPORT OPTIONS> below.
+
+=cut
+
 sub import_all_from_web {
     my ($class, $opt_uris, %opts) = @_;
     my @uris = @{ $opt_uris };
 
 Additional rdf:types
 
+=item C<model>
+
+The model to import from
+
+=item C<uris>
+
+=item C<uri>
+
+An array reference of URIs to import
+
+=item C<skip_blank>
+
+If set to true, blank nodes (i.e. resources without a URI) are skipped.
+
 =back
 
 =head1 AUTHOR