Generate Open Ethics Label

Submit the form below to label your solution by voluntarily providing information about the three key pillars: Training Data, Algorithms, and the Decision Space. The automatically-generated label HTML code could be then pasted into a website with zero-effort, providing transparency to the end-users. Read more about Open Ethics Label and the Open Ethics Manifesto.


Fill in the form
Display transparency

This is the preview. After submission of the form, you will receive the code to paste Open Ethics Label on your website.

Save and paste the Open Ethics Label HTML code into the HTML of your product’s webpage.

Download oel.html

function url_query(query) { query = query.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]"); var expr = "[\\?&]" + query + "=([^&#]*)"; var regex = new RegExp(expr); var results = regex.exec(window.location.href); if (results !== null) { return results[1]; } else { return false; } } function populateJSON(Selector) { var Val = $(Selector).val(); var Value = ""; if (Val) { Value = Val; } else { Value = ""; } return Value; } function updateOETP() { oetpJSONObj.snapshot.product.url = populateJSON(".productURL input"); oetpJSONObj.snapshot.label.data.type = populateJSON(".oeLabelData.type input:checked"); oetpJSONObj.snapshot.label.data.practice = populateJSON(".oeLabelData.practice textarea"); oetpJSONObj.snapshot.label.source.type = populateJSON(".oeLabelSource.type input:checked"); oetpJSONObj.snapshot.label.source.practice = populateJSON(".oeLabelSource.practice textarea"); oetpJSONObj.snapshot.label.decision.type = populateJSON(".oeLabelDecision.type input:checked"); oetpJSONObj.snapshot.label.decision.practice = populateJSON(".oeLabelDecision.practice textarea"); return oetpJSONObj; } function updateURL(url, key, value) { if (value) { url += ('&' + key + '=' + value); } else { url += ('&' + key + '=NA'); } return url; } function loadJSON(url) { var result = null; $.ajax({ url: url, type: 'get', dataType: 'json', async: false, success: function(data) { result = data; } }); return result; } function partnerLabelExists(alias) { var url = 'https://label.openethics.ai/src/images/label-partner-' + alias + '.svg'; if (url) { var req = new XMLHttpRequest(); req.open('GET', url, false); req.send(); return req.status == 200; } else { return false; } } function loadTemplateOETP() { var _partner = partner_alias; var _key = url_query("key"); if (JSONObj = loadJSON("/src/templates/oetp/custom/oetp_template_" + _partner + "-" + _key + ".json")) { //console.log("custom OETP template loaded"); var custom = true; } else { var JSONObj = loadJSON("/src/templates/oetp/oetp_template_oe-default.json"); //console.log("default OETP template loaded"); var custom = false; } return { JSONObj, custom }; } function addPartnerBranding(alias) { if (true && oetpTemplate.custom) { return true; } else { return false; } } var partner_alias = url_query("partner"); var oetpTemplate = loadTemplateOETP(); var oetpJSONObj = oetpTemplate.JSONObj; var addPartnerBranding = addPartnerBranding(partner_alias); //console.log("addPartnerBranding: "+addPartnerBranding); function updateiframe() { //iframe template var iframeBegin = ''; var srcBasic = 'https://label.openethics.ai'; var srcGenerated = "&accent_oe=3E8914"; if (addPartnerBranding === true) { srcGenerated = updateURL(srcGenerated, "partner", partner_alias); } //website srcGenerated = updateURL(srcGenerated, "url", oetpJSONObj.snapshot.product.url); //data srcGenerated = updateURL(srcGenerated, "data", oetpJSONObj.snapshot.label.data.type); //source srcGenerated = updateURL(srcGenerated, "source", oetpJSONObj.snapshot.label.source.type); //decision space srcGenerated = updateURL(srcGenerated, "decision", oetpJSONObj.snapshot.label.decision.type); //integrity hash (populated on nfFormSubmitResponse event) srcGenerated = updateURL(srcGenerated, "integrity", oetpJSONObj.schema.integrity); //console.log(srcBasic + '?' + srcGenerated); var iframecode = iframeBegin + srcBasic + '?' + srcGenerated + iframeEnd; return iframecode; } $(document).ready(function() { $(document).on('nfFormReady', function() { $(".nf-form-content :input").change(function() { $.when(updateOETP()).then(iframecode = updateiframe()).then(function() { $("#textarea_code").val(iframecode); $("#iframepreview").html(iframecode); //populating hidden field to submit for hashing var oetpJSON = JSON.stringify(oetpJSONObj); //console.log(oetpJSON); $("#nf-field-41").val(oetpJSON); }); }); }); $(document).on('nfFormSubmitResponse', function() { $.when(oetpJSONObj.schema.integrity = populateJSON("#integrity")).then(iframecode = updateiframe()).then(function() { $("#iframehtml").show(); $("#iframepreview").html(iframecode); var oetpJSONFinal = $("#oetpJSONFinal").html(); var oetpJSONFinalObj = JSON.parse(oetpJSONFinal); var oetpJSONFinalPretty = JSON.stringify(oetpJSONFinalObj, null, 4); $("#oetpJSONFinalPretty code").append(oetpJSONFinalPretty); $(".highlight code").each(function(i, block) { hljs.highlightBlock(block); hljs.lineNumbersBlock(block); }); $(".afternfFormSubmit").hide(); $(".panel-nfform").addClass("panel-success"); $(".panel-nfform .panel-heading").html("Label was successfully generated."); $(".btn-download-oetp").attr('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(oetpJSONFinalPretty)); $(".btn-download-oel").attr('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(iframecode)); }); }); });