Skip to content

Commit

Permalink
Fix link to RDF::Literal in README
Browse files Browse the repository at this point in the history
  • Loading branch information
tmaier committed Apr 4, 2014
1 parent 7323979 commit 6177594
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Expand Up @@ -242,7 +242,8 @@ end
All assigned types are accessible via "types":

```ruby
Man.types #=> #<Set: {#<RDF::URI:0xd5ebc0(http://example.org/people/father)>, #<RDF::URI:0xd5e4b8(http://example.org/people/cop)>}>
Man.types
# => #<Set: {#<RDF::URI:0xd5ebc0(http://example.org/people/father)>, #<RDF::URI:0xd5e4b8(http://example.org/people/cop)>}>
```

Also note that "type" actually returns a first type from the list of types.
Expand Down Expand Up @@ -382,8 +383,8 @@ are implemented:
* `Any`

The default type for a Spira property is `Spira::Types::Any`, which uses
`RDF::Literal`'s automatic boxing/unboxing of XSD types as best it can. See
`[RDF::Literal](http://rdf.rubyforge.org/RDF/Literal.html)` for more information.
`RDF::Literal`'s automatic boxing/unboxing of XSD types as best it can.
See [`RDF::Literal`](http://rdf.rubyforge.org/RDF/Literal.html) for more information.

You can implement your own types as well. Your class' serialize method should
turn an RDF::Value into a ruby object, and vice versa.
Expand Down

0 comments on commit 6177594

Please sign in to comment.