FeaturesPure Ruby (Using default core libraries) Simple as possible, No Feature Overkill. Safely ignores invalid RDFa statements (e.g.- Bad CURIEs, invalid URIs). Instead, the parser emits warning and debug messages to the 'Collector' Extensible by allowing developers create their own custom 'Collectors' to add bridge data coming from the RDFa parser to the developers' own RDF stores. Has a mixin method: require 'rdfa'
c = MyClass.new
source = ''
results = c.parse(source)Special NotesCURIE'd about and href attributes can be used to reference anonymous nodes. For example, about='_:name' will produce an anonymous node for name.
Anonymous Resources (BNodes) are placed in a custom namespace: tag:code.google.com,2007-03-13:p/ruby-rdfa/bnode#One can override this in the parameters.
Because RDFa uses CURIEs, we do not use QNames in the RDF statements-- everything is a URI object or literal text. About URI resolution work correctly for link and meta elements that are found in the head of an html document. Any xml document that has html as its root element, not just the ones that have the xhtml decl. Subversion commit r7 adds Nested RDFa support. Limitationsxml:base is completely ignored. Ignores Reification, but will output anonymous nodes in a special way. The RDFa Specification is still in flux, so please bear with. Nest CURIEs are not supported. Literal text are the only supported object datatype (as the content) for RDFa property statements; xml fragments are converted to a string.
Copyright © 2013 Black Duck Software, Inc. and its contributors, Some Rights Reserved. Unless otherwise marked, this work is licensed under a Creative Commons Attribution 3.0 Unported License . Ohloh ® and the Ohloh logo are trademarks of Black Duck Software, Inc. in the United States and/or other jurisdictions. All other trademarks are the property of their respective holders.