Skip to content
Extended XSD Datatypes for RDF.rb http://rubygems.org/gems/rdf-xsd
Ruby
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
etc
lib/rdf
spec
.gitignore Remove Gemfile.lock
.travis.yml Account for the fact that integer types promote to decimal on division.
.yardopts
AUTHORS
Gemfile
Gemfile-pure
HISTORY
README
README.md
Rakefile
UNLICENSE
VERSION
rdf-xsd.gemspec

README.md

Extended XSD Datatypes for RDF.rb

This gem adds additional RDF::Literal subclasses for extended XSD datatypes

Gem Version Build Status

Features

  • Additional xsd:integer subtypes
  • xsd:float based on xsd:double
  • xsd:duration
  • rdf:XMLLiteral
  • XML Exclusive Canonicalization (Nokogiri & REXML)
  • XML Literal comparisions (EquivalentXml, ActiveSupport or String)

Examples

require 'rdf'
require 'rdf/xsd'

Dependencies

Documentation

Full documentation available on [Rubydoc.info][XSD doc]

Principle Classes

  • {RDF::Literal::Base64Binary}
  • {RDF::Literal::Duration}
  • {RDF::Literal::Float}
  • {RDF::Literal::HexBinary}
  • {RDF::Literal::NonPositiveInteger}
    • {RDF::Literal::NegativeInteger}
  • {RDF::Literal::Long}
    • {RDF::Literal::Int}
      • {RDF::Literal::Short}
        • {RDF::Literal::Byte}
  • {RDF::Literal::NonNegativeInteger}
    • {RDF::Literal::PositiveInteger}
    • {RDF::Literal::UnsignedLong}
      • {RDF::Literal::UnsignedInt}
        • {RDF::Literal::UnsignedShort}
          • {RDF::Literal::UnsignedByte}
  • {RDF::Literal::YearMonth}
  • {RDF::Literal::Year}
  • {RDF::Literal::MonthDay}
  • {RDF::Literal::Month}
  • {RDF::Literal::Day}
  • {RDF::Literal::XML}

Installation

The recommended installation method is via RubyGems. To install the latest official release of the RDF::XSD gem, do:

% [sudo] gem install rdf-xsd

Mailing List

Author

Contributing

This repository uses Git Flow to mange development and release activity. All submissions must be on a feature branch based on the develop branch to ease staging and integration.

  • Do your best to adhere to the existing coding conventions and idioms.
  • Don't use hard tabs, and don't leave trailing whitespace on any line.
  • Do document every method you add using YARD annotations. Read the tutorial or just look at the existing code for examples.
  • Don't touch the .gemspec, VERSION or AUTHORS files. If you need to change them, do so on your private branch only.
  • Do feel free to add yourself to the CREDITS file and the corresponding list in the the README. Alphabetical order applies.
  • Do note that in order for us to merge any non-trivial changes (as a rule of thumb, additions larger than about 15 lines of code), we need an explicit public domain dedication on record from you.

License

This is free and unencumbered public domain software. For more information, see http://unlicense.org/ or the accompanying {file:UNLICENSE} file.

Portions of tests are derived from W3C DAWG tests and have other licensing terms.

Something went wrong with that request. Please try again.