Redland RDF Application Framework - Ruby RDoc - Module: FOAF

Go to Redland Home - Language Bindings Home - Ruby API Home

Module | FOAF
In: | rdf/redland/schemas/foaf.rb

### Methods

foaf_first foaf_mbox foaf_name foaf_name foaf_namespace foaf_phone foaf_surname foaf_title

### Constants

NS | = | Redland::Namespace.new('http://xmlns.com/foaf/0.1/')
FIRST | = | NS['first']
SURNAME | = | NS['surname']
PHONE | = | NS['phone']
TITLE | = | NS['title']
MBOX | = | NS['mbox']
MBOXSHAL1 | = | NS['mbox_shal1sum']
NAME | = | NS['name']
NICK | = | NS['nick']
IMAGE | = | NS['image']
DEPICTION | = | NS['depiction']
DEPICTS | = | NS['depicts']
PERSON | = | NS['Person']
KNOWS | = | NS['knows']

### Public Instance methods

foaf_first(node)

[Source]

    # File rdf/redland/schemas/foaf.rb, line 21
      def foaf_first(node)
        @model.object(node,FOAF['firstName']).to_s
      end

foaf_mbox(node)

[Source]

    # File rdf/redland/schemas/foaf.rb, line 45
      def foaf_mbox(node)
        @model.object(node,MBOX).to_s
      end

foaf_name(node)

[Source]

    # File rdf/redland/schemas/foaf.rb, line 25
      def foaf_name(node)
        @model.object(node,NAME)
      end

foaf_name(node)

[Source]

    # File rdf/redland/schemas/foaf.rb, line 49
      def foaf_name(node)
        @model.object(node,NAME).to_s
      end

foaf_namespace()

[Source]

    # File rdf/redland/schemas/foaf.rb, line 41
      def foaf_namespace
        return FOAF
      end

foaf_phone(node)

[Source]

    # File rdf/redland/schemas/foaf.rb, line 37
      def foaf_phone(node)
        @model.object(node,FOAF['phone']).to_s
      end

foaf_surname(node)

[Source]

    # File rdf/redland/schemas/foaf.rb, line 33
      def foaf_surname(node)
        @model.object(node,FOAF['surname']).to_s
      end

foaf_title(node)

[Source]

    # File rdf/redland/schemas/foaf.rb, line 29
      def foaf_title(node)
        @model.object(node,FOAF['title']).to_s
      end

Go to Redland Home - Language Bindings Home - Ruby API Home

(C) Copyright 2004-2011 Dave Beckett, (C) Copyright 2004-2005 University of Bristol