<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.safecreative.org/mw/index.php?action=history&amp;feed=atom&amp;title=Semantic.query</id>
	<title>Semantic.query - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.safecreative.org/mw/index.php?action=history&amp;feed=atom&amp;title=Semantic.query"/>
	<link rel="alternate" type="text/html" href="https://www.safecreative.org/mw/index.php?title=Semantic.query&amp;action=history"/>
	<updated>2026-05-11T19:28:05Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://www.safecreative.org/mw/index.php?title=Semantic.query&amp;diff=799&amp;oldid=prev</id>
		<title>Adminwiki: Created page with &quot;This is a prototype for Safe Creative semantic services.  It allows to query a work registration info by providing some kind of digital fingerprint  = Syntax =  This component...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.safecreative.org/mw/index.php?title=Semantic.query&amp;diff=799&amp;oldid=prev"/>
		<updated>2021-05-07T08:46:02Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This is a prototype for Safe Creative semantic services.  It allows to query a work registration info by providing some kind of digital fingerprint  = Syntax =  This component...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This is a prototype for Safe Creative semantic services.&lt;br /&gt;
&lt;br /&gt;
It allows to query a work registration info by providing some kind of digital fingerprint&lt;br /&gt;
&lt;br /&gt;
= Syntax =&lt;br /&gt;
&lt;br /&gt;
This component uses a different syntax from the rest of the API:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
http://api-search.safecreative.org/semantic-query?param=value&amp;amp;....&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Parameters = &lt;br /&gt;
You can use any of the following parameters on your semantic queries:&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;adler32&amp;#039;&amp;#039;&amp;#039;: Adler32 checksum of file contents (16 hex digits- first 8 digits should be zero)&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;crc32&amp;#039;&amp;#039;&amp;#039;: CRC32 checksum of file contents (16 hex digits – first 8 digits should be zero)&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ed2kfileid&amp;#039;&amp;#039;&amp;#039;: File hash for ed2k network (32 hex digits)&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;md2&amp;#039;&amp;#039;&amp;#039;: MD2 hash of file contents (32 hex digits)&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;md4&amp;#039;&amp;#039;&amp;#039;: MD4 hash of file contents (32 hex digits)&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;md5&amp;#039;&amp;#039;&amp;#039;: MD5 hash of file contents (32 hex digits)&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;part32k.first&amp;#039;&amp;#039;&amp;#039;: SHA1 hash of the first 32k of file contents (40 hex digits)&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;part32k.last&amp;#039;&amp;#039;&amp;#039;: SHA1 hash of the last 32k of file contents (40 hex digits)&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;part32k.middle&amp;#039;&amp;#039;&amp;#039;: SHA1 hash of middle 32k of file contents (40 hex digits)&lt;br /&gt;
** It is calculated as the SHA1 of a 32k chunk starting on file position (filesize – 32k) / 2.&lt;br /&gt;
** If the file size is less than 32k, it is the hash of the whole file.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;sha&amp;#039;&amp;#039;&amp;#039;: SHA1 hash of file contents(40 hex digits)&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;sha1&amp;#039;&amp;#039;&amp;#039;: SHA1 hash of file contents (40 hex digits)&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;sha384&amp;#039;&amp;#039;&amp;#039;: SHA384 hash of file contents (96 hex digits)&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;sha512&amp;#039;&amp;#039;&amp;#039;: SHA512 hash of file contents (128 hex digits)&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;size&amp;#039;&amp;#039;&amp;#039;: File size in bytes&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;torrent.*&amp;#039;&amp;#039;&amp;#039;: SHA1 hash of torrent chunk hashes for different chunk sizes (40 hex digits)&lt;br /&gt;
** &amp;#039;&amp;#039;&amp;#039;torrent.32768&amp;#039;&amp;#039;&amp;#039;: 32k chunks&lt;br /&gt;
** &amp;#039;&amp;#039;&amp;#039;torrent.49152&amp;#039;&amp;#039;&amp;#039;: 48k chunks&lt;br /&gt;
** &amp;#039;&amp;#039;&amp;#039;torrent.65536&amp;#039;&amp;#039;&amp;#039;: 64k chunks&lt;br /&gt;
** &amp;#039;&amp;#039;&amp;#039;torrent.98304&amp;#039;&amp;#039;&amp;#039;: 96k chunks&lt;br /&gt;
** &amp;#039;&amp;#039;&amp;#039;torrent.131072&amp;#039;&amp;#039;&amp;#039;: 128k chunks&lt;br /&gt;
** &amp;#039;&amp;#039;&amp;#039;torrent.196608&amp;#039;&amp;#039;&amp;#039;: 192k chunks&lt;br /&gt;
** &amp;#039;&amp;#039;&amp;#039;torrent.262144&amp;#039;&amp;#039;&amp;#039;: 256k chunks&lt;br /&gt;
** &amp;#039;&amp;#039;&amp;#039;torrent.393216&amp;#039;&amp;#039;&amp;#039;: 384k chunks&lt;br /&gt;
** &amp;#039;&amp;#039;&amp;#039;torrent.524288&amp;#039;&amp;#039;&amp;#039;: 512k chunks&lt;br /&gt;
** &amp;#039;&amp;#039;&amp;#039;torrent.786432&amp;#039;&amp;#039;&amp;#039;: 768k chunks&lt;br /&gt;
** &amp;#039;&amp;#039;&amp;#039;torrent.1048576&amp;#039;&amp;#039;&amp;#039;: 1024k chunks&lt;br /&gt;
** &amp;#039;&amp;#039;&amp;#039;torrent.1572864&amp;#039;&amp;#039;&amp;#039;: 1536k chunks&lt;br /&gt;
** &amp;#039;&amp;#039;&amp;#039;torrent.2097152&amp;#039;&amp;#039;&amp;#039;: 2048k chunks&lt;br /&gt;
** &amp;#039;&amp;#039;&amp;#039;torrent.3145728&amp;#039;&amp;#039;&amp;#039;: 3072k chunks&lt;br /&gt;
** &amp;#039;&amp;#039;&amp;#039;torrent.4194304&amp;#039;&amp;#039;&amp;#039;: 4096k chunks&lt;br /&gt;
&lt;br /&gt;
All binary contents must be encoded as a string of hexadecimal lowercase digits (0123456789abcdef), using two digits per byte (e.g. 8 bytes = 16 hex digits).&lt;br /&gt;
&lt;br /&gt;
= Returns =&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;works&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** &amp;#039;&amp;#039;&amp;#039;work&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*** &amp;#039;&amp;#039;&amp;#039;code&amp;#039;&amp;#039;&amp;#039;: Safe Creative work code &lt;br /&gt;
*** &amp;#039;&amp;#039;&amp;#039;title&amp;#039;&amp;#039;&amp;#039;: Work title&lt;br /&gt;
*** &amp;#039;&amp;#039;&amp;#039;authors&amp;#039;&amp;#039;&amp;#039;: List of authors&lt;br /&gt;
**** &amp;#039;&amp;#039;&amp;#039;author&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***** &amp;#039;&amp;#039;&amp;#039;code&amp;#039;&amp;#039;&amp;#039;: Author&amp;#039;s Safe Creative user code&lt;br /&gt;
***** &amp;#039;&amp;#039;&amp;#039;name&amp;#039;&amp;#039;&amp;#039;: Author&amp;#039;s full name&lt;br /&gt;
***** &amp;#039;&amp;#039;&amp;#039;human-url&amp;#039;&amp;#039;&amp;#039;: URL to the author&amp;#039;s Safe Creative public profile&lt;br /&gt;
*** &amp;#039;&amp;#039;&amp;#039;rights-holders&amp;#039;&amp;#039;&amp;#039;: List of rights holders&lt;br /&gt;
**** &amp;#039;&amp;#039;&amp;#039;rights-holder&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
***** &amp;#039;&amp;#039;&amp;#039;code&amp;#039;&amp;#039;&amp;#039;: Rights holder&amp;#039;s Safe Creative user code&lt;br /&gt;
***** &amp;#039;&amp;#039;&amp;#039;name&amp;#039;&amp;#039;&amp;#039;: Rights holder&amp;#039;s full name&lt;br /&gt;
***** &amp;#039;&amp;#039;&amp;#039;human-url&amp;#039;&amp;#039;&amp;#039;: URL to the rights holder&amp;#039;s Safe Creative public profile&lt;br /&gt;
*** &amp;#039;&amp;#039;&amp;#039;thumbnail&amp;#039;&amp;#039;&amp;#039;: URL to the work thumbnail (if any)&lt;br /&gt;
*** &amp;#039;&amp;#039;&amp;#039;license&amp;#039;&amp;#039;&amp;#039;: Work license&lt;br /&gt;
**** &amp;#039;&amp;#039;&amp;#039;code&amp;#039;&amp;#039;&amp;#039;: License code&lt;br /&gt;
**** &amp;#039;&amp;#039;&amp;#039;name&amp;#039;&amp;#039;&amp;#039;: License name&lt;br /&gt;
**** &amp;#039;&amp;#039;&amp;#039;shortname&amp;#039;&amp;#039;&amp;#039;: License short name&lt;br /&gt;
**** &amp;#039;&amp;#039;&amp;#039;human-url&amp;#039;&amp;#039;&amp;#039;: URL to license text&lt;br /&gt;
**** &amp;#039;&amp;#039;&amp;#039;features&amp;#039;&amp;#039;&amp;#039;: License features (see [[user.licenses]]&lt;br /&gt;
*** &amp;#039;&amp;#039;&amp;#039;human-url&amp;#039;&amp;#039;&amp;#039;: URL to this work web page in Safe Creative&lt;br /&gt;
*** &amp;#039;&amp;#039;&amp;#039;machine-url&amp;#039;&amp;#039;&amp;#039;: URL to this work API info response (see [[work.get]])*&lt;br /&gt;
&lt;br /&gt;
= Example =&lt;br /&gt;
REQUEST:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
http://api-search.safecreative.org/semantic-query?md5=9a4bca4293523413c176dd6cd23d20c2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
RESPONSE:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;works&amp;gt;&lt;br /&gt;
  &amp;lt;work&amp;gt;&lt;br /&gt;
    &amp;lt;code&amp;gt;0908044196577&amp;lt;/code&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;atardecer plateado&amp;lt;/title&amp;gt;&lt;br /&gt;
    &amp;lt;authors&amp;gt;&lt;br /&gt;
      &amp;lt;author&amp;gt;&lt;br /&gt;
        &amp;lt;code&amp;gt;0709270000528&amp;lt;/code&amp;gt;&lt;br /&gt;
        &amp;lt;name&amp;gt;Mario Pena Zapatería&amp;lt;/name&amp;gt;&lt;br /&gt;
        &amp;lt;human-url&amp;gt;http://www.safecreative.org/user/0709270000528&amp;lt;/human-url&amp;gt;&lt;br /&gt;
      &amp;lt;/author&amp;gt;&lt;br /&gt;
    &amp;lt;/authors&amp;gt;&lt;br /&gt;
    &amp;lt;thumbnail&amp;gt;http://thumbnails-safecreative-org.s3.amazonaws.com/1/00000122/e579/ca7e/dc6a/a75443e756ad/atardecerplateado_thumb.png&amp;lt;/thumbnail&amp;gt;&lt;br /&gt;
    &amp;lt;license&amp;gt;&lt;br /&gt;
      &amp;lt;code&amp;gt;http://creativecommons.org/licenses/by-sa/3.0/&amp;lt;/code&amp;gt;&lt;br /&gt;
      &amp;lt;name&amp;gt;Creative Commons Reconocimiento-Compartirigual 3.0&amp;lt;/name&amp;gt;&lt;br /&gt;
      &amp;lt;shortname&amp;gt;CC by-sa&amp;lt;/shortname&amp;gt;&lt;br /&gt;
      &amp;lt;human-url&amp;gt;http://creativecommons.org/licenses/by-sa/3.0/legalcode&amp;lt;/human-url&amp;gt;&lt;br /&gt;
      &amp;lt;features&amp;gt;&lt;br /&gt;
        &amp;lt;recognition&amp;gt;YES&amp;lt;/recognition&amp;gt;&lt;br /&gt;
        &amp;lt;distribution&amp;gt;YES&amp;lt;/distribution&amp;gt;&lt;br /&gt;
        &amp;lt;derivations&amp;gt;INHERITANCE&amp;lt;/derivations&amp;gt;&lt;br /&gt;
        &amp;lt;commercial&amp;gt;YES&amp;lt;/commercial&amp;gt;&lt;br /&gt;
      &amp;lt;/features&amp;gt;&lt;br /&gt;
    &amp;lt;/license&amp;gt;&lt;br /&gt;
    &amp;lt;human-url&amp;gt;http://www.safecreative.org/work/0908044196577&amp;lt;/human-url&amp;gt;&lt;br /&gt;
    &amp;lt;machine-url&amp;gt;http://www.safecreative.org/v2/?component=work.get&amp;amp;amp;code=0908044196577&amp;lt;/machine-url&amp;gt;&lt;br /&gt;
  &amp;lt;/work&amp;gt;&lt;br /&gt;
&amp;lt;/works&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:API component]]&lt;/div&gt;</summary>
		<author><name>Adminwiki</name></author>
	</entry>
</feed>