Commits

Konstantin Baierer committed 81c612c

fixes for named graphs

  • Participants
  • Parent commits e61099b

Comments (0)

Files changed (3)

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

 
 =item add_statement
 
+=item get_statements
+
 =back
 
 =head3 add_statement_smartly
 
 More DWIMmy version of RDF::Trine::Model->add_statmeent
 
+WARNING: Don't use this
+
 =cut
 
 sub add_statement_smartly {

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

     }
 
     # BUG investigate TODO
-    # $opts{context} = $self->rdf_about if ($self->does('MooseX::Semantic::Role::Graph')) ;
+    $opts{context} = $self->rdf_about if ($self->does('MooseX::Semantic::Role::Graph')) ;
 
     # TODO should be moved to MooseX::Semantic::Role::WithRdfType
     # rdf:type

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

 
 
             # warn Dumper $stash->{uris};
-            if ($stash->{uris}->[0]->as_string eq '<http://moosex-semantic.org/onto#rdf_graph>') {
+            if ($stash->{uris}->[0] && $stash->{uris}->[0]->as_string eq '<http://moosex-semantic.org/onto#rdf_graph>') {
                 $stash->{statement_iterator} = $model->get_statements(undef,undef,undef,$resource);
             }
             else {