This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from hashlib import md5 | |
| import requests | |
| from rdflib import Graph, RDF, SH, DCAT, Namespace, Node, URIRef | |
| from rdflib.namespace import split_uri | |
| import yaml | |
| ENDPOINT = "https://www.itb.ec.europa.eu/shacl/hda-be" | |
| DASH = Namespace("http://datashapes.org/dash#") | |
| IDX_PREDICATE = 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @prefix sh: <http://www.w3.org/ns/shacl#> . | |
| @prefix meta: <http://purl.org/fair-metadata/shape/metadata#> . | |
| @prefix x: <http://example.com/> . | |
| @prefix dct: <http://purl.org/dc/terms/> . | |
| @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | |
| meta:MetadataShape a sh:NodeShape ; | |
| sh:targetClass x:Metadata ; | |
| sh:property [ | |
| sh:path dct:issued ; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @prefix sh: <http://www.w3.org/ns/shacl#> . | |
| @prefix core: <http://purl.org/fair-metadata/shape/core#> . | |
| @prefix dct: <http://purl.org/dc/terms/> . | |
| @prefix dcat: <http://www.w3.org/ns/dcat#> . | |
| @prefix foaf: <http://xmlns.com/foaf/0.1/> . | |
| @prefix skos: <http://www.w3.org/2004/02/skos/core#> . | |
| @prefix odrl: <http://www.w3.org/ns/odrl/2/> . | |
| @prefix prov: <http://www.w3.org/ns/prov#> . | |
| @prefix r3d: <http://www.re3data.org/schema/3-0#> . | |
| @prefix r3voc: <http://www.re3data.org/vocab/> . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @prefix core: <http://purl.org/fair-metadata/profile/core#> . | |
| @prefix prof: <http://www.w3.org/ns/dx/prof/> . | |
| @prefix role: <http://www.w3.org/ns/dx/prof/role> . | |
| @prefix dct: <http://purl.org/dc/terms/> . | |
| @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | |
| core:Profile a prof:Profile ; | |
| rdfs:label "FAIR metadata profile" ; | |
| rdfs:comment "" ; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import threading | |
| import time | |
| import subprocess | |
| from datetime import datetime | |
| CMD = "/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport" | |
| ARGS = "-I" | |
| quit_triggered = False | |
| log = open('txrate.log', 'a') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from __future__ import print_function | |
| from oauth2client import file, client, tools | |
| from googleapiclient.discovery import build | |
| from httplib2 import Http | |
| import datetime | |
| SCOPE = 'https://www.googleapis.com/auth/calendar.readonly' | |
| # for a python calendar API reference, see https://developers.google.com/resources/api-libraries/documentation/calendar/v3/python/latest/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @ApiOperation(value = "Raw search (returns ES response)") | |
| @RequestMapping(value = {"/rs/**"}, method = {RequestMethod.GET, RequestMethod.POST, RequestMethod.HEAD} /*, produces = "text/json" */) | |
| @ResponseStatus(HttpStatus.OK) | |
| //@ResponseBody | |
| public void rawSearch(@RequestBody(required = false) String body, HttpMethod method, HttpServletRequest request, | |
| HttpServletResponse response, HttpEntity<String> httpEntity) throws FairSearchServiceException, IOException, Exception { | |
| String server = "http://localhost:9200/"; | |
| String jsonContent = ""; | |
| URI uri; |