From 5c5db4fe7ad85855e581867fde492b75d6fdbb08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20Fernando=20S=C3=A1nchez?= Date: Mon, 27 Feb 2017 12:52:40 +0100 Subject: [PATCH] Python2 compatibility + sparql server --- README.md | 1 + lod/extract_data.py | 3 +++ lod/requirements.txt | 1 + lod/{server.py => sparql.py} | 0 4 files changed, 5 insertions(+) rename lod/{server.py => sparql.py} (100%) diff --git a/README.md b/README.md index 229d2b5..912e06b 100644 --- a/README.md +++ b/README.md @@ -4,3 +4,4 @@ Exercises for Intelligent Systems Course * ML-1: introduction to machine learning with scikit-learn * ML-2: introduction to machine learning with pandas and scikit-learn * NLP: introduction to NLP +* LOD: Linked Open Data, exercises and example code diff --git a/lod/extract_data.py b/lod/extract_data.py index ffd531a..cb1da9b 100644 --- a/lod/extract_data.py +++ b/lod/extract_data.py @@ -1,5 +1,8 @@ import sys +from future.standard_library import install_aliases +install_aliases() + from urllib import request, parse from rdflib import Graph, term from lxml import etree diff --git a/lod/requirements.txt b/lod/requirements.txt index 9de4421..5eeadbe 100644 --- a/lod/requirements.txt +++ b/lod/requirements.txt @@ -1,3 +1,4 @@ +future rdflib rdflib-jsonld lxml diff --git a/lod/server.py b/lod/sparql.py similarity index 100% rename from lod/server.py rename to lod/sparql.py