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
| openapi: 3.0.1 | |
| info: | |
| title: Open Patent Services API | |
| version: "3.2" | |
| servers: | |
| - url: https://ops.epo.org/3.2/rest-services | |
| paths: | |
| /published-data/search: | |
| get: | |
| tags: |
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 nvidia/cuda:12.8.1-cudnn-devel-ubuntu22.04 | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| software-properties-common \ | |
| curl \ | |
| git \ | |
| clang \ | |
| libgl1 \ |
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
| [ | |
| { | |
| "code": "01.11Z", | |
| "label": "Cult céréale, légumineuse, graine oléag.", | |
| "parent_code": "01.1", | |
| "parent_label": "Cultures non permanentes", | |
| "parent_parent_code": "01", | |
| "parent_parent_label": "Cult. & prod. animale, chasse & sce ann." | |
| }, | |
| { |
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 requests | |
| from pprint import pprint | |
| from elasticsearch import Elasticsearch, helpers | |
| # Connexion à l'instance ElasticSearch | |
| es = Elasticsearch(hosts="http://elastic:changeme@localhost:9200/") | |
| # On crée une fonction pour récupérer les informations des entreprises | |
| # avec comme argument : page pour la page actuelle que l'on récupère |
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 epo_ops | |
| import xml.etree.ElementTree as ET | |
| # https://link.epo.org/web/how_to_test_OPS_en.pdf | |
| client = epo_ops.Client(key='', secret='') # Instantiate client | |
| response = client.published_data_search('in all "alaric tabaries"', range_begin=1, range_end=25, constituents=None) | |
| documents = [] |
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
| # syntax=docker/dockerfile:1.3 | |
| # previous command for builder buildkit compatibility, I guess. https://docs.docker.com/engine/reference/builder/ | |
| #For the manual installation on which that dockerfile is based go to :https://docs.ip-tools.org/patent2net/index.html | |
| # Run the ubuntu image of docker | |
| FROM centos:8 | |
| #Set Environment langage Profile | |
| #ENV container docker |
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
| POST index/_search | |
| { | |
| "query": { | |
| "match": { | |
| "field": "value" | |
| } | |
| }, | |
| "fields": [ | |
| "field1", | |
| "field2" |