Module | Redland::RDFS |
In: |
lib/rdf/redland/schemas/rdfs.rb
|
RDFSNS | = | Namespace.new("http://www.w3.org/2000/01/rdf-schema#") |
RDFS_CLASS | = | RDFSNS["Class"] |
RDFS_RESOURCE | = | RDFSNS["Resource"] |
RDFS_SUBCLASSOF | = | RDFSNS["subClassOf"] |
RDFS_SUBPROPERTYOF | = | RDFSNS["subPropertyOf"] |
RDFS_ISDEFINEDBY | = | RDFSNS["isDefinedBy"] |
RDFS_LABEL | = | RDFSNS["label"] |
RDFS_COMMENT | = | RDFSNS["comment"] |
RDFS_RANGE | = | RDFSNS["range"] |
RDFS_DOMAIN | = | RDFSNS["domain"] |
RDFS_LITERAL | = | RDFSNS["Literal"] |
RDFS_CONTAINER | = | RDFSNS["Container"] |
RDFS_SEEALSO | = | RDFSNS["seeAlso"] |
add a ‘www.w3.org/2000/01/rdf-schema#label’ to this resource. a label is a literal that can have a language. If a label for a given language is already defined, it replaces the label. If a label is not defined for a language it adds the label
res.add_label('my label') # label created res.add_label('change label') #label changed to 'change label' res.add_label('change again','en') # label added with language English
same as the following
model.add(this,Resource.new('http://www.w3.org/2000/01/rdf-schema#comment','comment')