LS::RDF::SimpleDocument - Simple RDF Document object
my $rdfDoc = LS::RDF::SimpleDocument->new(); $rdfDoc->addTripleLiteral($lsid->as_string(), 'http://purl.org/dc/elements/1.1/#title', $approved_gene_name); $rdfDoc->addTripleResource($lsid->as_string(), 'urn:lsid:myauthority.org:predicates:external_link', 'urn:lsid:ncbi.nlm.nih.gov.lsid.i3c.org:pubmed:' . lc($pmid1ID)); print '<?xml version="1.0"?>' . "\n" . $rdfDoc->output();
This class provides a simple interface to create RDF documents.
Adds an RDF triple which contains a resource as its object.
Adds an RDF triple which contains a literal as its object.
Returns the RDF represented by this object as text.
Copyright (c) 2002,2003 IBM Corporation. All rights reserved. This program and the accompanying materials are made available under the terms of the Common Public License v1.0 which accompanies this distribution, and is available at http://www.opensource.org/licenses/cpl.php
To install LS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm LS
CPAN shell
perl -MCPAN -e shell install LS
For more information on module installation, please visit the detailed CPAN module installation guide.