.\" Automatically generated by Pod::Man 4.11 (Pod::Simple 3.35) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "RDF::DOAP 3pm" .TH RDF::DOAP 3pm "2020-04-01" "perl v5.30.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" RDF::DOAP \- an object\-oriented interface for DOAP (Description of a Project) data .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 2 \& use feature \*(Aqsay\*(Aq; \& use RDF::DOAP; \& \& my $url = \*(Aqhttp://api.metacpan.org/source/DOY/Moose\-2.0604/doap.rdf\*(Aq; \& my $doap = \*(AqRDF::DOAP\*(Aq\->from_url($url); \& my $proj = $doap\->project; \& \& say $proj\->name; # "Moose" \& \& say $_\->name \& for @{ $proj\->maintainer }; .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" A little sparsely documented right now. .PP The \s-1RDF::DOAP\s0 class itself is mostly a wrapper for parsing \s-1RDF\s0 and building objects. Most of the interesting stuff is in the \&\*(L"Bundled Classes\*(R". .SS "Constructors" .IX Subsection "Constructors" .ie n .IP """new(%attrs)""" 4 .el .IP "\f(CWnew(%attrs)\fR" 4 .IX Item "new(%attrs)" You don't want to use this. .ie n .IP """from_url($url)""" 4 .el .IP "\f(CWfrom_url($url)\fR" 4 .IX Item "from_url($url)" Parse the \s-1RDF\s0 at the given \s-1URL\s0 and construct an \s-1RDF::DOAP\s0 object. .ie n .IP """from_file($fh, $base)""" 4 .el .IP "\f(CWfrom_file($fh, $base)\fR" 4 .IX Item "from_file($fh, $base)" Parse a file handle or file name. A base \s-1URL\s0 may be provided for resolving relative \s-1URI\s0 references; if omitted the base is assumed to be \f(CW\*(C`http://localhost/\*(C'\fR which is almost certainly wrong. .ie n .IP """from_model($model)""" 4 .el .IP "\f(CWfrom_model($model)\fR" 4 .IX Item "from_model($model)" Read \s-1DOAP\s0 from an existing RDF::Trine::Model. .SS "Attributes" .IX Subsection "Attributes" .ie n .IP """projects""" 4 .el .IP "\f(CWprojects\fR" 4 .IX Item "projects" An arrayref; the list of software projects found in the input data. This cannot be provided in the constructor. .SS "Methods" .IX Subsection "Methods" .ie n .IP """project""" 4 .el .IP "\f(CWproject\fR" 4 .IX Item "project" If \f(CW\*(C`projects\*(C'\fR contains only one project, returns it. .Sp Otherwise, tries to guess which of the projects the input data was mostly trying to describe. .SS "Bundled Classes" .IX Subsection "Bundled Classes" Within each of these classes, the attributes correspond roughly to the properties defined for them in the \s-1DOAP\s0 schema; however hyphens in property URIs become underscores in attribute names. .IP "\fBRDF::DOAP::Resource\fR" 4 .IX Item "RDF::DOAP::Resource" Correponds roughly to the \fIrdfs:Resource\fR class, excluding literals. .IP "\fBRDF::DOAP::Project\fR" 4 .IX Item "RDF::DOAP::Project" Correponds to \fIdoap:Project\fR. .IP "\fBRDF::DOAP::Repository\fR" 4 .IX Item "RDF::DOAP::Repository" Correponds to \fIdoap:Repository\fR. .IP "\fBRDF::DOAP::Person\fR" 4 .IX Item "RDF::DOAP::Person" Correponds to \fIfoaf:Person\fR. .IP "\fBRDF::DOAP::Version\fR" 4 .IX Item "RDF::DOAP::Version" Correponds to \fIdoap:Version\fR. .IP "\fBRDF::DOAP::ChangeSet\fR" 4 .IX Item "RDF::DOAP::ChangeSet" Correponds to \fIdcs:ChangeSet\fR. .IP "\fBRDF::DOAP::Change\fR" 4 .IX Item "RDF::DOAP::Change" Correponds to \fIdcs:Change\fR. .IP "\fBRDF::DOAP::Issue\fR" 4 .IX Item "RDF::DOAP::Issue" Correponds to \fIdbug:Issue\fR. .SH "BUGS" .IX Header "BUGS" Please report any bugs to . .SH "SEE ALSO" .IX Header "SEE ALSO" .IP "\(bu" 4 Edd Dumbill's series of articles on \s-1DOAP\s0's design: part 1 , part 2 , part 3 and part 4 .IP "\(bu" 4 The \s-1DOAP\s0 Schema . .IP "\(bu" 4 The \s-1DOAP\s0 Change Sets Schema . .IP "\(bu" 4 The \s-1DOAP\s0 Bugs Schema . .SH "AUTHOR" .IX Header "AUTHOR" Toby Inkster . Kjetil Kjernsmo . .SH "COPYRIGHT AND LICENCE" .IX Header "COPYRIGHT AND LICENCE" This software is copyright (c) 2013 by Toby Inkster, 2017 by Kjetil Kjernsmo. .PP This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. .SH "DISCLAIMER OF WARRANTIES" .IX Header "DISCLAIMER OF WARRANTIES" \&\s-1THIS PACKAGE IS PROVIDED \*(L"AS IS\*(R" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.\s0