Lines Matching defs:license
42 <license rdf:resource="http://creativecommons.org/licenses/by/4.0/"
56 <license rdf:resource="http://creativecommons.org/ns#PublicDomain" />
229 #define XML_TAG_NAME_LICENSE_PROP "cc:license"
288 // TRANSLATORS: URL to a page that defines the license for the document
289 { "license_uri", N_("URI:"), "cc:license", RDF_RESOURCE,
290 // TRANSLATORS: this is where you put a URL to a page that defines the license
291 N_("URI to this document's license's namespace definition"), RDF_FORMAT_LINE, RDF_EDIT_SPECIAL,
294 // TRANSLATORS: fragment of XML representing the license of the document
346 static void setLicense(SPDocument * doc, struct rdf_license_t const * license);
400 gchar *license=NULL;
439 if (rdf && rdf->license && rdf->license->work_rdf && rdf->license->work_rdf[0]) {
440 work_license=g_markup_printf_escaped(" <license rdf:resource=\"%s\" />\n",
441 rdf->license->work_rdf);
445 rdf->license->work_rdf);
447 overall+=strlen(rdf->license->license_rdf);
475 strcat(string,rdf->license->license_rdf);
947 rdf_match_license(Inkscape::XML::Node const *repr, struct rdf_license_t const *license)
950 g_assert ( license != NULL );
954 printf("checking against '%s'\n",license->name);
958 for (struct rdf_double_t const *details = license->details;
981 printf("\t\t'%s' vs '%s'\n", current->name(), license->details[i].name);
982 printf("\t\t'%s' vs '%s'\n", attr, license->details[i].resource);
986 license->details[i].name ) &&
988 license->details[i].resource )) {
998 // if we checked each known item of the license
1002 printf("\t\tno '%s' element matched XML (bong)!\n",license->name);
1015 printf("\t\tnot all '%s' elements used to match (bong)!\n", license->name);
1021 printf("\t\tall '%s' elements used to match!\n",license->name);
1027 if (result) printf("matched '%s'\n",license->name);
1040 // Base license lookup on the URI of cc:license rather than the license
1054 for (struct rdf_license_t * license = rdf_licenses; license->name; license++) {
1055 if (g_strcmp0(uri, license->uri) == 0) {
1056 license_by_uri = license;
1062 // To improve backward compatibility, the old license matching code is
1073 for ( struct rdf_license_t * license = rdf_licenses; license->name; license++ ) {
1074 if ( rdf_match_license( repr, license ) ) {
1075 license_by_properties = license;
1096 // Reset license structure to match so the document is consistent
1103 // Only cc:license property, set structure for backward compatiblity
1111 g_warning("No %s metadata found, derived license URI from %s: %s",
1115 // Set license property to match
1121 // No license info at all
1126 void rdf_set_license(SPDocument * doc, struct rdf_license_t const * license)
1128 RDFImpl::setLicense( doc, license );
1131 void RDFImpl::setLicense(SPDocument * doc, struct rdf_license_t const * license)
1133 // When basing license check on only the license URI (see fix for
1135 // really drop this license section, but keep writing it for a while for
1138 // drop old license section
1144 if ( !license ) {
1149 // build new license section
1153 repr->setAttribute("rdf:about", license->uri );
1155 for (struct rdf_double_t const * detail = license->details; detail->name; detail++) {