CatalogCreateDataSetViewQuery
DELETE {
<http://view.hbz.ru/ViewSetup-1-[UUID]> ?b ?c
}
WHERE {
<http://view.hbz.ru/ViewSetup-1-[UUID]> ?b ?c
}
INSERT
{
<http://view.hbz.ru/ViewSetup-1-[UUID]> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://view.hbz.ru/ViewSetup> .
<http://view.hbz.ru/ViewSetup-1-[UUID]> <http://view.hbz.ru/id> "ViewSetup-1-[UUID]"<http://www.w3.org/2001/XMLSchema#string> .
<http://view.hbz.ru/ViewSetup-1-[UUID]> <http://view.hbz.ru/asset_id> "[ASSET_URI]"<http://www.w3.org/2001/XMLSchema#string> .
<http://view.hbz.ru/ViewSetup-1-[UUID]> <http://view.hbz.ru/html_code> "<iframe style=\"border:none;\" src=\"https://[HOST][OLAP_DATASET_URL]\" title=\"[DATASET_TITLE]\" width=\"100%\" height=\"500px\" role=\"presentation\" allowfullscreen></iframe>"<http://www.w3.org/2001/XMLSchema#string> .
<http://view.hbz.ru/ViewSetup-1-[UUID]> <http://view.hbz.ru/type> "html"<http://www.w3.org/2001/XMLSchema#string> .
<http://view.hbz.ru/ViewSetup-1-[UUID]> <http://view.hbz.ru/view_description> "[DATASET_TITLE]"<http://www.w3.org/2001/XMLSchema#string> .
<http://view.hbz.ru/ViewSetup-1-[UUID]> <http://view.hbz.ru/view_title> "Интерактивная таблица"<http://www.w3.org/2001/XMLSchema#string> .
}
DELETE {
<http://view.hbz.ru/ViewSetup-2-[UUID]> ?b ?c
}
WHERE {
<http://view.hbz.ru/ViewSetup-2-[UUID]> ?b ?c
}
INSERT
{
<http://view.hbz.ru/ViewSetup-2-[UUID]> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://view.hbz.ru/ViewSetup> .
<http://view.hbz.ru/ViewSetup-2-[UUID]> <http://view.hbz.ru/endpoint> "https://statcat.semanticpro.org/sparql/"<http://www.w3.org/2001/XMLSchema#string> .
<http://view.hbz.ru/ViewSetup-2-[UUID]> <http://view.hbz.ru/extra_options> "{\"defaultLanguage\": \"ru\",\"decorators\": [{\"pattern\": {\"attribute\": \"http://www.w3.org/1999/02/22-rdf-syntax-ns#type\",\"value\": \"http://www.w3.org/2004/02/skos/core#Concept\"},\"decor\": {\"backgroundColor\": \"#AAFF00\"}}, {\"pattern\": {\"attribute\": \"http://www.w3.org/1999/02/22-rdf-syntax-ns#type\", \"value\": \"http://purl.org/linked-data/cube#DataSet\"}, \"decor\": {\"backgroundColor\": \"#FFC300\"}}, {\"pattern\": {\"attribute\": \"http://www.w3.org/1999/02/22-rdf-syntax-ns#type\",\"value\": \"http://www.w3.org/2004/02/skos/core#ConceptScheme\"},\"decor\": {\"backgroundColor\": \"#00FF00\"}}, {\"pattern\": {\"attribute\": \"http://www.w3.org/1999/02/22-rdf-syntax-ns#type\",\"value\": \"http://purl.org/linked-data/cube#ComponentSpecification\"},\"decor\": {\"backgroundColor\": \"#734a12\"}},{\"pattern\": {\"attribute\": \"http://www.w3.org/1999/02/22-rdf-syntax-ns#type\",\"value\": \"http://purl.org/linked-data/cube#DataStructureDefinition\"},\"decor\": {\"backgroundColor\": \"#008080\"}},{\"pattern\": {\"attribute\": \"http://www.w3.org/1999/02/22-rdf-syntax-ns#type\",\"value\": \"http://purl.org/linked-data/cube#DimensionProperty\"},\"decor\": {\"backgroundColor\": \"#cd5b45\"}},{\"pattern\": {\"attribute\": \"http://www.w3.org/1999/02/22-rdf-syntax-ns#type\",\"value\": \"http://purl.org/linked-data/cube#Observation\"},\"decor\": {\"backgroundColor\": \"#B0FFF9\"}}],\"legend\": \"Набор данных(наблюдений) выделен <font color='#FFF' style='border: 1px #000 solid; background-color:#FFC300;'>оранжевым цветом</font>.<br/>Спецификация набора данных выделена <font color='#FFF' style='border: 1px #000 solid; background-color:#008080;'>сине-зелёным цветом</font>.<br/>Компонент спецификации набора данных выделен <font color='#FFF' style='border: 1px #000 solid; background-color:#734a12'>темно-коричневым цветом</font>.<br/>Значения словаря выделено <font color='#000' style='border: 1px #000 solid; background-color:#AAFF00;'>светло-зелёным цветом</font>.<br/>Наблюдение выделено <font color='#000' style='border: 1px #000 solid; background-color:#B0FFF9;'>светло-голубым цветом</font>.<br/>Остальные узлы выделены <font color='000' style='border: 1px #000 solid; background-color:#AACCFF;'>сине-голубым цветом</font>.\"}"<http://www.w3.org/2001/XMLSchema#string> .
<http://view.hbz.ru/ViewSetup-2-[UUID]> <http://view.hbz.ru/graph> "[DATASET_URI]"<http://www.w3.org/2001/XMLSchema#string> .
<http://view.hbz.ru/ViewSetup-2-[UUID]> <http://view.hbz.ru/namespaces> "-"<http://www.w3.org/2001/XMLSchema#string> .
<http://view.hbz.ru/ViewSetup-2-[UUID]> <http://view.hbz.ru/show_type> "sparql"<http://www.w3.org/2001/XMLSchema#string> .
<http://view.hbz.ru/ViewSetup-2-[UUID]> <http://view.hbz.ru/sparql> "PREFIX DATA: <[DATASET_URI]> \n select DISTINCT ?s ?p ?o\n FROM NAMED DATA: \n FROM NAMED <[PURL]/LabourMarket/vocabs/age/1.0#>\n FROM NAMED <[PURL]/LabourMarket/vocabs/jobsearchduration/1.0#>\n FROM NAMED <[PURL]/LabourMarket/vocabs/waysfindjob/1.0#>\n FROM NAMED <[PURL]/LabourMarket/vocabs/employmentstatuses/1.0#>\n FROM NAMED <[PURL]/LabourMarket/vocabs/leveleducation/1.0#>\n FROM NAMED <[PURL]/Common/vocabs/public_organizations/CIS_STAT#>\n FROM NAMED <[PURL]/Common/vocabs/period/1.0#>\n FROM NAMED <[PURL]/Common/vocabs/typeeconomicactivity/1.0#>\n FROM NAMED <[PURL]/Common/vocabs/unit-of-measurement#>\n FROM NAMED <[PURL]/Common/vocabs/timepercollect/1.0#>\n FROM NAMED <[PURL]/Common/vocabs/unit_mult#>\n FROM NAMED <[PURL]/Common/vocabs/frequency#>\n FROM NAMED <[PURL]/Common/vocabs/sex/1.0#>\n FROM NAMED <[PURL]/Common/vocabs/country/1.0#>\n {\n GRAPH ?g {\n ?s ?p ?o .\n OPTIONAL {\n GRAPH DATA:\n {\n ?s1 ?p1 ?s\n }\n }\n \n FILTER (\n (?g != DATA: && isURI(?s1)) ||\n (?g = DATA: )\n )\n }\n }"<http://www.w3.org/2001/XMLSchema#string> .
<http://view.hbz.ru/ViewSetup-2-[UUID]> <http://view.hbz.ru/type> "graph"<http://www.w3.org/2001/XMLSchema#string> .
<http://view.hbz.ru/ViewSetup-2-[UUID]> <http://view.hbz.ru/asset_id> "[ASSET_URI]"<http://www.w3.org/2001/XMLSchema#string> .
<http://view.hbz.ru/ViewSetup-2-[UUID]> <http://view.hbz.ru/id> "ViewSetup-2-[UUID]"<http://www.w3.org/2001/XMLSchema#string> .
<http://view.hbz.ru/ViewSetup-2-[UUID]> <http://view.hbz.ru/view_description> "[DATASET_TITLE]"<http://www.w3.org/2001/XMLSchema#string> .
<http://view.hbz.ru/ViewSetup-2-[UUID]> <http://view.hbz.ru/view_title> "Граф набора данных"<http://www.w3.org/2001/XMLSchema#string> .
}
INSERT {
<http://view.hbz.ru/ViewSetup-2-[UUID]> <http://view.hbz.ru/createTypes> [
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Seq> ;
<http://www.w3.org/1999/02/22-rdf-syntax-ns#_1> [<http://view.hbz.ru/uri> "http://purl.org/linked-data/cube#DimensionProperty"<http://www.w3.org/2001/XMLSchema#string>] ;
<http://www.w3.org/1999/02/22-rdf-syntax-ns#_2> [<http://view.hbz.ru/uri> "http://purl.org/linked-data/cube#DataSet"<http://www.w3.org/2001/XMLSchema#string>] ;
<http://www.w3.org/1999/02/22-rdf-syntax-ns#_3> [<http://view.hbz.ru/uri> "http://www.w3.org/2004/02/skos/core#Concept"<http://www.w3.org/2001/XMLSchema#string>] ;
<http://www.w3.org/1999/02/22-rdf-syntax-ns#_4> [<http://view.hbz.ru/uri> "http://www.w3.org/2004/02/skos/core#Collection"<http://www.w3.org/2001/XMLSchema#string>] ;
<http://www.w3.org/1999/02/22-rdf-syntax-ns#_5> [<http://view.hbz.ru/uri> "http://purl.org/linked-data/cube#ComponentSpecification"<http://www.w3.org/2001/XMLSchema#string>] ;
<http://www.w3.org/1999/02/22-rdf-syntax-ns#_6> [<http://view.hbz.ru/uri> "http://purl.org/linked-data/cube#DataStructureDefinition"<http://www.w3.org/2001/XMLSchema#string>] ;
<http://www.w3.org/1999/02/22-rdf-syntax-ns#_7> [<http://view.hbz.ru/uri> "http://purl.org/linked-data/cube#MeasureProperty"<http://www.w3.org/2001/XMLSchema#string>] ;
<http://www.w3.org/1999/02/22-rdf-syntax-ns#_8> [<http://view.hbz.ru/uri> "http://purl.org/linked-data/cube#Observation"<http://www.w3.org/2001/XMLSchema#string>] ;
<http://www.w3.org/1999/02/22-rdf-syntax-ns#_9> [<http://view.hbz.ru/uri> "http://data.europa.eu/m8g/PublicOrganisation"<http://www.w3.org/2001/XMLSchema#string>] ;
<http://www.w3.org/1999/02/22-rdf-syntax-ns#_10> [<http://view.hbz.ru/uri> "http://purl.org/dc/terms/LicenseDocument"<http://www.w3.org/2001/XMLSchema#string>] ;
] .
<http://view.hbz.ru/ViewSetup-2-[UUID]> <http://view.hbz.ru/labelsFilter> [
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Seq> ;
<http://www.w3.org/1999/02/22-rdf-syntax-ns#_1> [<http://view.hbz.ru/backgroundColor> "#ffffff"<http://www.w3.org/2001/XMLSchema#string>;
<http://view.hbz.ru/uri> "http://www.w3.org/2000/01/rdf-schema#label"<http://www.w3.org/2001/XMLSchema#string>] ;
<http://www.w3.org/1999/02/22-rdf-syntax-ns#_2> [<http://view.hbz.ru/backgroundColor> "#ffffff"<http://www.w3.org/2001/XMLSchema#string>;
<http://view.hbz.ru/uri> "http://www.w3.org/2000/01/rdf-schema#label"<http://www.w3.org/2001/XMLSchema#string>] ;
<http://www.w3.org/1999/02/22-rdf-syntax-ns#_3> [<http://view.hbz.ru/backgroundColor> "#ffffff"<http://www.w3.org/2001/XMLSchema#string>;
<http://view.hbz.ru/uri> "[PURL]/Common/vocabs/timepercollect/1.0#Average_of_period"<http://www.w3.org/2001/XMLSchema#string>] ;
<http://www.w3.org/1999/02/22-rdf-syntax-ns#_4> [<http://view.hbz.ru/backgroundColor> "#ffffff"<http://www.w3.org/2001/XMLSchema#string>;
<http://view.hbz.ru/uri> "[PURL]/Common/vocabs/timepercollect/1.0#End_of_period"<http://www.w3.org/2001/XMLSchema#string>] ;
<http://www.w3.org/1999/02/22-rdf-syntax-ns#_5> [<http://view.hbz.ru/backgroundColor> "#ffffff"<http://www.w3.org/2001/XMLSchema#string>;
<http://view.hbz.ru/uri> "[PURL]/Common/vocabs/timepercollect/1.0#Summed_through_period"<http://www.w3.org/2001/XMLSchema#string>] ;
] .
<http://view.hbz.ru/ViewSetup-2-[UUID]> <http://view.hbz.ru/linksFilter> [
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Seq> ;
<http://www.w3.org/1999/02/22-rdf-syntax-ns#_1> [<http://view.hbz.ru/uri> "http://www.w3.org/2004/02/skos/core#hasTopConcept"<http://www.w3.org/2001/XMLSchema#string>] ;
<http://www.w3.org/1999/02/22-rdf-syntax-ns#_2> [<http://view.hbz.ru/uri> "http://purl.org/linked-data/cube#codeList"<http://www.w3.org/2001/XMLSchema#string>] ;
<http://www.w3.org/1999/02/22-rdf-syntax-ns#_3> [<http://view.hbz.ru/uri> "http://purl.org/linked-data/cube#component"<http://www.w3.org/2001/XMLSchema#string>] ;
<http://www.w3.org/1999/02/22-rdf-syntax-ns#_4> [<http://view.hbz.ru/uri> "http://purl.org/linked-data/cube#structure"<http://www.w3.org/2001/XMLSchema#string>] ;
<http://www.w3.org/1999/02/22-rdf-syntax-ns#_5> [<http://view.hbz.ru/uri> "http://purl.org/linked-data/cube#dimension"<http://www.w3.org/2001/XMLSchema#string>] ;
<http://www.w3.org/1999/02/22-rdf-syntax-ns#_6> [<http://view.hbz.ru/uri> "http://purl.org/linked-data/cube#measure"<http://www.w3.org/2001/XMLSchema#string>] ;
<http://www.w3.org/1999/02/22-rdf-syntax-ns#_7> [<http://view.hbz.ru/uri> "http://www.w3.org/2004/02/skos/core#member"<http://www.w3.org/2001/XMLSchema#string>] ;
<http://www.w3.org/1999/02/22-rdf-syntax-ns#_8> [<http://view.hbz.ru/uri> "http://publishmydata.com/def/qb/codesUsed"<http://www.w3.org/2001/XMLSchema#string>] ;
<http://www.w3.org/1999/02/22-rdf-syntax-ns#_9> [<http://view.hbz.ru/uri> "http://purl.org/dc/terms/publisher"<http://www.w3.org/2001/XMLSchema#string>] ;
<http://www.w3.org/1999/02/22-rdf-syntax-ns#_10> [<http://view.hbz.ru/uri> "http://purl.org/dc/terms/license"<http://www.w3.org/2001/XMLSchema#string>] ;
<http://www.w3.org/1999/02/22-rdf-syntax-ns#_11> [<http://view.hbz.ru/uri> "[PURL]/LabourMarket/vocabs/age/1.0"<http://www.w3.org/2001/XMLSchema#string>] ;
<http://www.w3.org/1999/02/22-rdf-syntax-ns#_12> [<http://view.hbz.ru/uri> "[PURL]/LabourMarket/vocabs/jobsearchduration/1.0#"<http://www.w3.org/2001/XMLSchema#string>] ;
<http://www.w3.org/1999/02/22-rdf-syntax-ns#_13> [<http://view.hbz.ru/uri> "[PURL]/LabourMarket/vocabs/waysfindjob/1.0"<http://www.w3.org/2001/XMLSchema#string>] ;
<http://www.w3.org/1999/02/22-rdf-syntax-ns#_14> [<http://view.hbz.ru/uri> "[PURL]/LabourMarket/vocabs/employmentstatuses/1.0"<http://www.w3.org/2001/XMLSchema#string>] ;
<http://www.w3.org/1999/02/22-rdf-syntax-ns#_15> [<http://view.hbz.ru/uri> "[PURL]/LabourMarket/vocabs/leveleducation/1.0"<http://www.w3.org/2001/XMLSchema#string>] ;
<http://www.w3.org/1999/02/22-rdf-syntax-ns#_16> [<http://view.hbz.ru/uri> "[PURL]/Common/vocabs/public_organizations/CIS_STAT"<http://www.w3.org/2001/XMLSchema#string>] ;
<http://www.w3.org/1999/02/22-rdf-syntax-ns#_17> [<http://view.hbz.ru/uri> "[PURL]/Common/vocabs/period/1.0"<http://www.w3.org/2001/XMLSchema#string>] ;
<http://www.w3.org/1999/02/22-rdf-syntax-ns#_18> [<http://view.hbz.ru/uri> "[PURL]/Common/vocabs/typeeconomicactivity/1.0"<http://www.w3.org/2001/XMLSchema#string>] ;
<http://www.w3.org/1999/02/22-rdf-syntax-ns#_19> [<http://view.hbz.ru/uri> "[PURL]/Common/vocabs/unit-of-measurement"<http://www.w3.org/2001/XMLSchema#string>] ;
<http://www.w3.org/1999/02/22-rdf-syntax-ns#_20> [<http://view.hbz.ru/uri> "[PURL]/Common/vocabs/timepercollect/1.0"<http://www.w3.org/2001/XMLSchema#string>] ;
<http://www.w3.org/1999/02/22-rdf-syntax-ns#_21> [<http://view.hbz.ru/uri> "[PURL]/Common/vocabs/unit_mult"<http://www.w3.org/2001/XMLSchema#string>] ;
<http://www.w3.org/1999/02/22-rdf-syntax-ns#_22> [<http://view.hbz.ru/uri> "[PURL]/Common/vocabs/frequency"<http://www.w3.org/2001/XMLSchema#string>] ;
<http://www.w3.org/1999/02/22-rdf-syntax-ns#_23> [<http://view.hbz.ru/uri> "[PURL]/Common/vocabs/sex/1.0"<http://www.w3.org/2001/XMLSchema#string>] ;
<http://www.w3.org/1999/02/22-rdf-syntax-ns#_24> [<http://view.hbz.ru/uri> "[PURL]/Common/vocabs/country/1.0"<http://www.w3.org/2001/XMLSchema#string>] ;
] .
<http://view.hbz.ru/ViewSetup-2-[UUID]> <http://view.hbz.ru/typesFilter> [
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Seq> ;
<http://www.w3.org/1999/02/22-rdf-syntax-ns#_1> [<http://view.hbz.ru/backgroundColor> "#ffffff"<http://www.w3.org/2001/XMLSchema#string>;
<http://view.hbz.ru/uri> "-"<http://www.w3.org/2001/XMLSchema#string>] ;
] .
}