Commits

Konstantin Baierer committed 198df73

fixed tests and dependencies for next release

Comments (0)

Files changed (8)

         'Scalar::Util' => 0,
         'Set::Object' => '1.28',
         'URI' => 0,
+        'Data::Printer' => 0,
         'RDF::NS' => '20111124',
         'MooseX::HasDefaults' => '0.03',
 
     },
     build_requires => {
         'String::Diff' => 0,
+        'Carp::Always' => 0,
+        'Data::Printer' => 0,
+        'Devel::PartialDump' => 0,
         'Term::ANSIColor' => 0,
         'RDF::Endpoint' => '0.04',
         'SUPER' => 0,
+0.004   2012-03-31
+    * fixed some tests
+    * missing requirements
+0.003   2012-03-27
+    * Handling of models as attribute isa
+    * Role for Named Graphs
+    * Convenience Role for Import&Export&RdfType
+    * Basic support for MooseX::Types typedecorators in TypeConstraintWalker
+0.002   2011-12-27
+    * Fix build errors (missing dependencies)
 0.001   2011-12-23
     * Initial release
-0.002   2011-12-27
-    * Fix build errors (missing dependencies)
 lib/Moose/Meta/Attribute/Custom/Trait/Semantic.pm
 lib/MooseX/Semantic.pm
 lib/MooseX/Semantic/Meta/Attribute/Trait.pm
+lib/MooseX/Semantic/Role/Graph.pm
+lib/MooseX/Semantic/Role/PortableResource.pm
 lib/MooseX/Semantic/Role/RdfBackend.pm
 lib/MooseX/Semantic/Role/RdfExport.pm
 lib/MooseX/Semantic/Role/RdfImport.pm
 lib/MooseX/Semantic/Test.pm
 lib/MooseX/Semantic/Test/BackendPerson.pm
 lib/MooseX/Semantic/Test/MetaPerson.pm
+lib/MooseX/Semantic/Test/ModelContainingPerson.pm
 lib/MooseX/Semantic/Test/Person.pm
 lib/MooseX/Semantic/Test/StrictPerson.pm
 lib/MooseX/Semantic/Types.pm
 t/data/toby_inkster.ttl
 t/rdf_backend/role_rdfbackend.t
 t/rdf_export/basic.t
+t/rdf_export/graph.t
 t/rdf_export/rdf_endpoint.t
 t/rdf_export/to_hash.t
 t/rdf_import/blank_node.t
 t/rdf_import/rdf_import.t
 t/rdf_import/rdf_import_all_synopsis.t
 t/rdf_import/subtyped.t
+t/rdf_resource.t
 t/rdf_type.t
 t/role_obsolescence.t
 t/role_withrdftype.t

lib/MooseX/Semantic.pm

 package MooseX::Semantic;
 BEGIN { $MooseX::Semantic::AUTHORITY = 'cpan:KBA'; }
-BEGIN { $MooseX::Semantic::VERSION = '0.003'; }
+BEGIN { $MooseX::Semantic::VERSION = '0.004'; }
 
 1;
 

lib/MooseX/Semantic/Role/RdfExport.pm

 use HTTP::Request;
 use Scalar::Util qw(blessed);
 use MooseX::Semantic::Types qw( TrineLiteral);
+use Log::Log4perl;
 use Data::Dumper;
 
 with (
     'MooseX::Semantic::Util::TypeConstraintWalker',
 );
 
+my $logger = Log::Log4perl->get_logger('moosex.semantic.rdfexport');
+
 =head1 NAME
 
 MooseX::Semantic::Role::RdfExport - Role for exporting Moose objects to RDF
                 $context,
             );
         } else {
-            warn "Can't export this object since it doesn't MooseX::Semantic::Role::RdfExport";
+            $logger->error( "Can't export this object since it doesn't MooseX::Semantic::Role::RdfExport: " . Dumper($single_val));
         }
     }
     else {

lib/MooseX/Semantic/Test.pm

 package MooseX::Semantic::Test;
-use RDF::Trine;
+use RDF::Trine ();
 use Term::ANSIColor;
 use String::Diff;
 use Data::Dumper;

lib/MooseX/Semantic/Util/TypeConstraintWalker.pm

         }
         elsif ($self->_find_parent_type($attr->type_constraint, 'ArrayRef')) {
             if ( ! $attr_type->can('type_parameter')) {
-                warn Dumper "XXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
                 # warn Dumper ref $attr_type;
                 # p $attr_type;
                 $callback_name = 'literal_in_array';

t/util/schema_import/from_foaf.t

 use Test::More tests=>4;
 use Test::Moose;
+use RDF::Trine ();
 use RDF::Trine::Namespace qw(rdf);
 use Data::Dumper;
 use MooseX::Semantic::Test qw(ser ser_dump diff_models);