26 Aug 2012 22:05:45 UTC
- Distribution: MooseX-Semantic
- Module version: 0.006
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (1)
- Testers (91 / 22 / 0)
- KwaliteeBus factor: 0
- % Coverage
- License: perl_5
- Activity24 month
- Download (61.43KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
- DOCUMENTATION OVERVIEW
- TODO BUGS
- SEE ALSO
MooseX::Semantic - Adding RDF semantics to the Moose framework
MooseX::Semantic is a set of modules that adds a semantic layer to Moose-powered objects. Moose classes that consume the various roles MooseX::Semantic offers are interoperable with the RDF::Trine RDF framework.
MooseX::Semantic can be used on multiple levels of integration into RDF.
For basic semantic additions, the following roles are necessary:
Add URIs, datatype and language to your attributes, turning them into RDF properties.
Adds a class attribute
rdf_typerepresenting the RDF is-a relationship.
Adds an 'rdf_about' attribute to Moose objects turning them into RDF resources.
The following classes make round-tripping to/from RDF/Moose possible:
Role for exporting a Moose object to RDF, including serialization and exporting to SPARQL/U endpoints.
Creating instances of MooseX::Semantic-flavored Moose classes from RDF data.
Bulk import of multiple RDF resources.
These modules make MooseX::Semantic-enabled classes storable in a RDF::Trine::Store and handle statement obsolescence.
Assignment a RDF::Trine::Store object to a class, so objects of the class can be stored and re-imported from that store.
Role that keeps track of changes within an object's set of statements and helps keeping the statements accurate.
Extract the schema/ontology that a MooseX::Semantic class represents.
Dynamically adding MooseX::Semantic::Meta::Attribute::Trait-enabled attributes to existing classes or creating MooseX::Semantic classes directly from a schema such as FOAF.
Defines subtypes and coercions for various RDF-related data structures
Convenient way to loop through the attributes of a Moose class with regards to their RDF semantics.
Documentation is lacking, the tests would be a good starting point right now.
Context isn't properly handled right now.
Performance hasn't been considered yet.
Schema introspection without at least RDFS reasoning can only get you so far.
Recursive import is buggy.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perldoc perlartistic.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Module Install Instructions
To install MooseX::Semantic, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install MooseX::Semantic
For more information on module installation, please visit the detailed CPAN module installation guide.