没有任何数据可供显示
开源项目社区 | 当前位置 : |
|
www.trustie.net/open_source_projects | 主页 > 开源项目社区 > ruby-rdfa |
ruby-rdfa
|
0 | 0 | 4 |
贡献者 | 讨论 | 代码提交 |
概述
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'
class MyClass
acts_as_rdfa_parser
end
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.
51.47026
-2.59466
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.
创建时间:2014-05-07 21:30