Library Item Metadata

Starting with QCAD 3, QCAD part library items can be accompanied by a meta data file (RDF / dublin core XML).

Such a file might look like this example file:

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
         xmlns:ql="http://qcad.org/ql/elements/1.0/"
         xmlns:dc="http://purl.org/dc/elements/1.1/"
         xmlns:dcterms="http://purl.org/dc/terms/">
  <rdf:Description rdf:about="">
    <dcterms:license>http://creativecommons.org/licenses/by/3.0/</dcterms:license>
    <ql:attribute-as>John Doe</ql:attribute-as>
    <dc:source>http://johndoesdomain.org/qcad/item356.dxf</dc:source>
    <dcterms:created>2012</dcterms:created>
    <dc:title xml:lang="en">flux capacitor</dc:title>
    <dc:creator>John Doe</dc:creator>
    <ql:dimension>2d</ql:dimension>
<ql:perspective>top</ql:perspective>
    <ql:presentation>realistic</ql:presentation>
<ql:standard>ISO0000</ql:standard>
    <dc:subject xml:lang="en">
      <rdf:Bag>
        <rdf:li>flux capacitor</rdf:li>
        <rdf:li>time machine</rdf:li>
      </rdf:Bag>
    </dc:subject>
  </rdf:Description>
</rdf:RDF>

Although these meta data tags can hold any values, controlled dictionaries as listed below should be used or at least preferred:

  • dcterms:license
    • http://creativecommons.org/licenses/publicdomain/
      for public domain items.
    • http://creativecommons.org/licenses/by/3.0/
      for items released under Creative Commons Attribution 3.0 Unported (CC BY 3.0).
    • http://creativecommons.org/licenses/by-nc/3.0/
      for items released under Creative Commons Attribution-NonCommercial 3.0 Unported (CC BY-NC 3.0).
    • https://creativecommons.org/about/cc0
      for items for which the creator waives all copyrights and other rights for their work.
  • ql:attribute-as
    • Only for use with a creative commons attribution license. How the item should be attributed.
  • dc:source
    • URI or other identifier of the original item source file.
  • dcterms:created
    • Year or date of creation.
  • dc:title
    • Title of the item in the language indicated with xml:lang or in any language if xml:lang is omitted.
  • dc:creator
    • Name of the item creator.
  • ql:dimension
    • 2d
    • 3d
  • ql:perspective
    • top
    • side
      • If an item has no front or back, side should be preferred (e.g. for a tree)
    • front
    • back
    • isometric
  • ql:presentation
    • realistic
    • schematic
    • fillable
    • symbol
  • ql:standard
    • DIN...
    • ISO...
    • ANSI...
    • JIS...
    • ...
  • dc:subject
    • Any tags or keywords which don't fit in any other tag category. The language can be indicated with xml:lang. Language independent tags (e.g. serial numbers) can be added with dc:subject tags without an xml:lang attribute.