science-periodicals / ontology

:mortar_board: sci.pe (science periodicals) extension of schema:ScholarlyArticle to describe the production process, content, distribution and preservation of scholarly articles (and similar artifacts).
http://ns.sci.pe
Apache License 2.0
4 stars 0 forks source link

checksum and filePath properties #10

Closed sballesteros closed 9 years ago

sballesteros commented 9 years ago

Thinking of putting the following properties (all used in the workers) here too. The idea is to have that as an extension to schema.org

@darobin @transcranial are you OK with it or should I find another place?

    //schema:CreativeWork extension proposal (will be better in MediaObject _but_ this is useful too for SoftwareApplication)
      {
        "@id": "sa:Checksum",
        "@type": "rdfs:Class",
        "subClassOf": "schema:Intangible",
        "label": "checksum",
        "comment": "A small-size datum from an arbitrary block of digital data for the purpose of detecting errors which may have been introduced during its transmission or storage.",
        "status": "testing",
        "seeAlso": "http://en.wikipedia.org/wiki/Checksum",
        "equivalenClass": "http://www.semanticdesktop.org/ontologies/2007/03/22/nfo/#FileHash"
      },
      {
        "@id": "sa:hasChecksum",
        "@type": "rdf:Property",
        "comment":"The checksum of the resource.",
        "label": "checksum",
        "range": "sa:Checksum",
        "domain": "schema:CreativeWork",
        "status": "testing",
        "seeAlso": "http://en.wikipedia.org/wiki/Checksum",
        "equivalentProperty": "http://www.semanticdesktop.org/ontologies/2007/03/22/nfo/#hasHash"
      },
      {
        "@id": "sa:checksumAlgorithm",
        "@type": "rdf:Property",
        "comment":"Name of the algorithm used to compute the checksum value. Examples might include MD5, SHA-1 etc.",
        "label": "checksum algorithm",
        "range": "xsd:string",
        "domain": "sa:Checksum",
        "status": "testing",
        "seeAlso": "http://en.wikipedia.org/wiki/Checksum",
        "equivalentProperty": "http://www.semanticdesktop.org/ontologies/2007/03/22/nfo/#hashAlgorithm"
      },
      {
        "@id": "sa:checksumValue",
        "@type": "rdf:Property",
        "comment":"The actual value of the hash in base64 if no datatype are present.",
        "label": "hash value",
        "range": "xsd:string",
        "domain": "sa:FileHash",
        "status": "testing",
        "seeAlso": "http://en.wikipedia.org/wiki/Checksum",
        "equivalentProperty": "http://www.semanticdesktop.org/ontologies/2007/03/22/nfo/#hashValue"
      },

      //schema:MediaObject / SoftwareApplication extension proposal
      {
        "@id": "sa:filePath",
        "@type": "rdf:Property",
        "comment":"Unix-style ('/') relative path to a file in a filesystem.",
        "label": "file path",
        "range": "xsd:string",
        "domain": ["schema:MediaObject", "schema:SoftwareApplication"],
        "status": "testing",
        "seeAlso": "http://en.wikipedia.org/wiki/Path_(computing)",
        "source": "https://github.com/standard-analytics/dcat/issues/18"
      },
sballesteros commented 9 years ago

maybe sa:hasChecksum -> sa:checksum but then it's close the the class (sa:Checksum)

sballesteros commented 9 years ago

so we agreed to drop filePath and use file: url (on the schema:url) property instead

sballesteros commented 9 years ago

actually for filePath we will use schema:contentUrl and the name prop of the encoding for the file name