Commits

Konstantin Baierer  committed 48acb79

PortableResource role that implies Resource, Export, Import and RdfType

  • Participants
  • Parent commits 7d7f1f3
  • Tags 0.003

Comments (0)

Files changed (4)

+Tue Mar 27 02:57:43 CEST 2012
+-----------------------------
+* A meta-attribute 'inverse' to specify that $self->rdf_about should be the
+  object of a statement, not it's subject.
+* A Moose class for all that is known about $self->rdf_about across named
+  graphs/contexts and with '$self->rdf_about' as subject or object
 
 Fri Feb 24 15:10:35 CET 2012
 ----------------------------

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

+package MooseX::Semantic::Role::PortableResource;
+use Moose::Role;
+with qw(
+    MooseX::Semantic::Role::Resource
+    MooseX::Semantic::Role::RdfExport
+    MooseX::Semantic::Role::RdfImport
+    MooseX::Semantic::Role::WithRdfType
+);
+
+1;

File t/rdf_resource.t

 # rdf_resource.t
 #=======================================================================
 use common::sense;
-use Test::Most tests => 1;
+use Test::Most tests => 3;
 use Data::Dumper;
 {
     package SemTest;

File t/rdf_type.t

 use strict;
 use warnings;
 use Test::More
-    # skip_all => 'no reason'
-    tests => 1
+    skip_all => 'no reason'
+    # tests => 1
     ; 
 use Test::Moose;
 use Data::Dumper;