Lines Matching refs:rdf

18 #include "rdf.h"
27 <rdf:RDF xmlns="http://creativecommons.org/ns#"
29 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
30 <Work rdf:about="">
40 <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
41 <dc:source rdf:resource="source"/>
42 <license rdf:resource="http://creativecommons.org/licenses/by/4.0/"
47 <rdf:RDF xmlns="http://creativecommons.org/ns#"
49 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
50 <Work rdf:about="">
55 <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
56 <license rdf:resource="http://creativecommons.org/ns#PublicDomain" />
59 <License rdf:about="http://creativecommons.org/ns#PublicDomain">
60 <permits rdf:resource="http://creativecommons.org/ns#Reproduction" />
61 <permits rdf:resource="http://creativecommons.org/ns#Distribution" />
62 <permits rdf:resource="http://creativecommons.org/ns#DerivativeWorks" />
65 </rdf:RDF>
71 <rdf:Bag>
72 <rdf:li>open clip art logo</rdf:li>
73 <rdf:li>images</rdf:li>
74 <rdf:li>logo</rdf:li>
75 <rdf:li>clip art</rdf:li>
76 <rdf:li>ocal</rdf:li>
77 <rdf:li>logotype</rdf:li>
78 <rdf:li>filetype</rdf:li>
79 </rdf:Bag>
225 #define XML_TAG_NAME_RDF "rdf:RDF"
274 // For info, see Appendix D of http://www.w3.org/TR/1998/WD-rdf-schema-19980409/
367 * Takes the inkscape rdf struct and spits out a static RDF, which is only
368 * useful for testing. We must merge the rdf struct into the XML DOM for
378 rdf_string(struct rdf_t * rdf)
384 <rdf:RDF xmlns=\"http://creativecommons.org/ns#\"\
386 xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\
389 <Work rdf:about=\"\">\
390 <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\" />\
403 gchar *rdf_end="</rdf:RDF>\n";
405 if (rdf && rdf->work_title && rdf->work_title[0]) {
407 rdf->work_title);
410 if (rdf && rdf->work_date && rdf->work_date[0]) {
412 rdf->work_date);
415 if (rdf && rdf->work_description && rdf->work_description[0]) {
417 rdf->work_description);
420 if (rdf && rdf->work_creator && rdf->work_creator[0]) {
424 rdf->work_creator);
427 if (rdf && rdf->work_owner && rdf->work_owner[0]) {
431 rdf->work_owner);
434 if (rdf && rdf->work_source && rdf->work_source[0]) {
435 work_source=g_markup_printf_escaped(" <dc:source rdf:resource=\"%s\" />\n",
436 rdf->work_source);
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);
444 license_head=g_markup_printf_escaped("<License rdf:about=\"%s\">\n",
445 rdf->license->work_rdf);
447 overall+=strlen(rdf->license->license_rdf);
475 strcat(string,rdf->license->license_rdf);
512 return repr->attribute("rdf:resource");
522 temp = sp_repr_lookup_name ( repr, "rdf:Bag", 1 );
534 if (!strcmp(temp->name(),"rdf:li") &&
633 parent->setAttribute("rdf:resource", text );
640 /* find/create the rdf:Bag item */
641 temp = sp_repr_lookup_name ( parent, "rdf:Bag", 1 );
648 temp = xmldoc->createElement ( "rdf:Bag" );
665 temp = xmldoc->createElement ( "rdf:li" );
716 Inkscape::XML::Node const *rdf = 0;
722 rdf = sp_repr_lookup_name( doc->getReprDoc(), XML_TAG_NAME_RDF );
725 return rdf;
730 Inkscape::XML::Node *rdf = 0;
736 rdf = sp_repr_lookup_name( doc->getReprDoc(), XML_TAG_NAME_RDF );
737 if ( !rdf ) {
756 rdf = parent->document()->createElement( XML_TAG_NAME_RDF );
757 if ( !rdf ) {
760 parent->appendChild(rdf);
761 Inkscape::GC::release(rdf);
768 if ( rdf ) {
769 ensureParentIsMetadata( doc, rdf );
772 return rdf;
785 Inkscape::XML::Node const * rdf = getRdfRootRepr( doc );
786 if ( rdf ) {
787 xml = sp_repr_lookup_name( rdf, name );
810 Inkscape::XML::Node * rdf = ensureRdfRootRepr( doc );
811 if ( rdf ) {
812 xml = sp_repr_lookup_name( rdf, name );
818 xml->setAttribute("rdf:about", "" );
820 rdf->appendChild(xml);
968 gchar const * attr = current->attribute("rdf:resource");
1153 repr->setAttribute("rdf:about", license->uri );
1159 child->setAttribute("rdf:resource", detail->resource );