__construct($args); } /* */ function get_fld_infos(){ $mbox_sha1sum_info="The value is going to be encoded to hide it from spammers. You may enter an email address, a mailbox URI (mailto:foo@bar.baz), or an already encoded sha1 hash of a mailbox URI."; return array( array("type"=>"info", "value"=>'

Use the form below to create a basic software project description. Uniquely identifying properties are marked with an asterisk.

'), array("type"=>"fieldset_start", "legend"=>"General information"), array("name"=>"doap__name", "type"=>"str1", "label"=>$this->get_prop_label("doap:name"), "info"=>$this->get_prop_comment("doap:name")), array("name"=>"doap__homepage", "type"=>"str1", "label"=>$this->get_prop_label("doap:homepage")."*", "info"=>$this->get_prop_comment("doap:homepage")), array("name"=>"doap__shortdesc", "type"=>"str2", "textarea_style"=>"height:50px;", "label"=>$this->get_prop_label("doap:shortdesc"), "info"=>$this->get_prop_comment("doap:shortdesc")), array("name"=>"doap__description", "type"=>"str2", "textarea_style"=>"height:120px;", "label"=>$this->get_prop_label("doap:description"), "info"=>$this->get_prop_comment("doap:description")), array("name"=>"doap__created", "type"=>"str1", "label"=>$this->get_prop_label("doap:created"), "info"=>$this->get_prop_comment("doap:created")), array("type"=>"fieldset_end"), array("type"=>"fieldset_start", "legend"=>"Maintainer"), array("name"=>"maintainer_bnode", "type"=>"hidden", "value"=>"t"), array("name"=>"maintainer_name", "type"=>"str1", "label"=>$this->get_prop_label("foaf:name"), "info"=>$this->get_prop_comment("foaf:name")), array("name"=>"maintainer_mbox_sha1sum", "type"=>"str1", "label"=>"Mailbox, encoded*", "info"=>$mbox_sha1sum_info), array("type"=>"fieldset_end"), array("type"=>"fieldset_start", "legend"=>"Developer"), array("name"=>"developer_bnode", "type"=>"hidden", "value"=>"t"), array("name"=>"developer_name", "type"=>"str1", "label"=>$this->get_prop_label("foaf:name"), "info"=>$this->get_prop_comment("foaf:name")), array("name"=>"developer_mbox_sha1sum", "type"=>"str1", "label"=>"Mailbox, encoded*", "info"=>$mbox_sha1sum_info), array("type"=>"fieldset_end"), array("type"=>"fieldset_start", "legend"=>"Technical information"), array("name"=>"doap__programming-language", "is_list"=>true, "type"=>"str2", "label"=>"Programming languages", "info"=>"List of programming languages (one entry per line) the project is implemented in or intended for use with."), array("name"=>"doap__screenshots", "type"=>"str1", "label"=>$this->get_prop_label("doap:screenshots"), "info"=>$this->get_prop_comment("doap:screenshots")), array("name"=>"doap__os", "type"=>"str1", "label"=>$this->get_prop_label("doap:os"), "info"=>$this->get_prop_comment("doap:os")), array("name"=>"doap__download-page", "type"=>"str1", "label"=>$this->get_prop_label("doap:download-page"), "info"=>$this->get_prop_comment("doap:download-page")), array("type"=>"fieldset_end"), array("type"=>"fieldset_start", "legend"=>"Current release"), array("name"=>"release_bnode", "type"=>"hidden", "value"=>"t"), array("name"=>"release_created", "type"=>"str1", "label"=>$this->get_prop_label("doap:created"), "info"=>$this->get_prop_comment("doap:created")), array("name"=>"release_revision", "type"=>"str1", "label"=>$this->get_prop_label("doap:revision"), "info"=>$this->get_prop_comment("doap:revision")), array("type"=>"fieldset_end"), array("type"=>"fieldset_start", "legend"=>"License"), array("name"=>"doap__license", "type"=>"enum", "entries"=>$this->get_license_entries(), "label"=>$this->get_prop_label("doap:license"), "info"=>$this->get_prop_comment("doap:license")), array("type"=>"fieldset_end"), ); } /* */ function get_license_entries(){ $licenses=array( "http://usefulinc.com/doap/licenses/asl20"=>"Apache 2.0", "http://usefulinc.com/doap/licenses/bsd"=>"BSD", "http://usefulinc.com/doap/licenses/gpl"=>"GPL 2", "http://usefulinc.com/doap/licenses/lgpl"=>"LGPL 2.1", "http://usefulinc.com/doap/licenses/mit"=>"MIT", "http://usefulinc.com/doap/licenses/mpl"=>"MPL", "http://usefulinc.com/doap/licenses/w3c"=>"W3C", "http://creativecommons.org/licenses/by/2.0/"=>"CC Attribution 2.0", "http://creativecommons.org/licenses/by-nd/2.0/"=>"CC Attribution-NoDerivs 2.0", "http://creativecommons.org/licenses/by-nc-nd/2.0/"=>"CC Attribution-NonCommercial-NoDerivs 2.0", "http://creativecommons.org/licenses/by-nc/2.0/"=>"CC Attribution-NonCommercial 2.0", "http://creativecommons.org/licenses/by-nc-sa/2.0/"=>"CCAttribution-NonCommercial-ShareAlike 2.0", "http://creativecommons.org/licenses/by-sa/2.0/"=>"CC Attribution-ShareAlike 2.0", ); $result=":-"; foreach($licenses as $uri=>$label){ $result.=",".rawurlencode($uri).":".rawurlencode($label); } return $result; } /* */ function create_release_bnode_property($args=""){ $args["property_nsd_name"]="doap:release"; $args["web_obj_class_nsd_name"]="doap:Version"; $args["web_obj_property_infos"]=array( array("fld_name"=>"release_created", "prop_nsd_name"=>"doap:created"), array("fld_name"=>"release_revision", "prop_nsd_name"=>"doap:revision", "mandatory"=>true), ); return $this->create_bnode_property($args); } function create_maintainer_bnode_property($args=""){ $args["property_nsd_name"]="doap:maintainer"; $args["web_obj_class_nsd_name"]="foaf:Person"; $args["web_obj_property_infos"]=array( array("fld_name"=>"maintainer_name", "prop_nsd_name"=>"foaf:name"), array("fld_name"=>"maintainer_mbox_sha1sum", "prop_nsd_name"=>"foaf:mbox_sha1sum", "mandatory"=>true), ); return $this->create_bnode_property($args); } function create_developer_bnode_property($args=""){ $args["property_nsd_name"]="doap:developer"; $args["web_obj_class_nsd_name"]="foaf:Person"; $args["web_obj_property_infos"]=array( array("fld_name"=>"developer_name", "prop_nsd_name"=>"foaf:name"), array("fld_name"=>"developer_mbox_sha1sum", "prop_nsd_name"=>"foaf:mbox_sha1sum", "mandatory"=>true), ); return $this->create_bnode_property($args); } /* */ } ?>