All Projects → DerwenAI → Kglab

DerwenAI / Kglab

Licence: mit
Graph-Based Data Science: an abstraction layer in Python for building knowledge graphs, integrated with popular graph libraries – atop Pandas, RDFlib, pySHACL, RAPIDS, NetworkX, iGraph, PyVis, pslpython, pyarrow, etc.

Projects that are alternatives of or similar to Kglab

cognipy
In-memory Graph Database and Knowledge Graph with Natural Language Interface, compatible with Pandas
Stars: ✭ 31 (-68.37%)
Mutual labels:  graph-algorithms, sparql, pandas, knowledge-graph
Pytextrank
Python implementation of TextRank for phrase extraction and summarization of text documents
Stars: ✭ 1,675 (+1609.18%)
Mutual labels:  graph-algorithms, knowledge-graph, jupyter-notebook
Grakn
TypeDB: a strongly-typed database
Stars: ✭ 2,947 (+2907.14%)
Mutual labels:  graph-algorithms, knowledge-graph, inference
Python
Jupyter notebooks and datasets for the interesting pandas/python/data science video series.
Stars: ✭ 65 (-33.67%)
Mutual labels:  jupyter-notebook, pandas
Data Science Complete Tutorial
For extensive instructor led learning
Stars: ✭ 1,027 (+947.96%)
Mutual labels:  jupyter-notebook, pandas
Ds and ml projects
Data Science & Machine Learning projects and tutorials in python from beginner to advanced level.
Stars: ✭ 56 (-42.86%)
Mutual labels:  jupyter-notebook, pandas
Machinelearningcourse
A collection of notebooks of my Machine Learning class written in python 3
Stars: ✭ 35 (-64.29%)
Mutual labels:  jupyter-notebook, pandas
Disease Prediction From Symptoms
Disease Prediction based on Symptoms.
Stars: ✭ 70 (-28.57%)
Mutual labels:  jupyter-notebook, pandas
Pydata Pandas Workshop
Material for my PyData Jupyter & Pandas Workshops, I'm also available for personal in-house trainings on request
Stars: ✭ 65 (-33.67%)
Mutual labels:  jupyter-notebook, pandas
Stock Knowledge Graph
利用网络上公开的数据构建一个小型的证券知识图谱/知识库
Stars: ✭ 1,182 (+1106.12%)
Mutual labels:  knowledge-graph, neo4j
Credit Risk Modelling
Credit Risk analysis by using Python and ML
Stars: ✭ 91 (-7.14%)
Mutual labels:  jupyter-notebook, pandas
Sentiment Analysis Twitter Microservices Example
A sample application that demonstrates how to build a graph processing platform to analyze sources of emotional influence on Twitter.
Stars: ✭ 45 (-54.08%)
Mutual labels:  graph-algorithms, neo4j
Quilt
Quilt is a self-organizing data hub for S3
Stars: ✭ 1,007 (+927.55%)
Mutual labels:  jupyter-notebook, parquet
Applied Text Mining In Python
Repo for Applied Text Mining in Python (coursera) by University of Michigan
Stars: ✭ 59 (-39.8%)
Mutual labels:  jupyter-notebook, pandas
Pandas Ta
Technical Analysis Indicators - Pandas TA is an easy to use Python 3 Pandas Extension with 130+ Indicators
Stars: ✭ 962 (+881.63%)
Mutual labels:  jupyter-notebook, pandas
Pandas Tutorial
Tutorial on Using Pandas
Stars: ✭ 66 (-32.65%)
Mutual labels:  jupyter-notebook, pandas
Pandas Tutorial
适合初级到中级晋升者,有了体系之后就看熟练度了。
Stars: ✭ 1,250 (+1175.51%)
Mutual labels:  jupyter-notebook, pandas
Neo4j Apoc Procedures
Awesome Procedures On Cypher for Neo4j - codenamed "apoc"                     If you like it, please ★ above ⇧            
Stars: ✭ 1,291 (+1217.35%)
Mutual labels:  graph-algorithms, neo4j
Data Mining Python
《python数据分析与挖掘实战》项目实践及拓展
Stars: ✭ 92 (-6.12%)
Mutual labels:  jupyter-notebook, pandas
Machine Learning Alpine
Alpine Container for Machine Learning
Stars: ✭ 30 (-69.39%)
Mutual labels:  jupyter-notebook, pandas

kglab

DOI Licence Repo size GitHub commit activity Checked with mypy security: bandit

Welcome to graph-based data science: https://derwen.ai/docs/kgl/

The kglab library provides a simple abstraction layer in Python 3.6+ for building knowledge graphs.

SPECIAL REQUEST:
Which features would you like in an open source Python library for building knowledge graphs?
Please add your suggestions through this survey:
https://forms.gle/FMHgtmxHYWocprMn6
This will help us prioritize the kglab roadmap.

Getting Started

See the "Getting Started" section of the online documentation.

To install from PyPi:

pip install kglab

If you work directly from this Git repo, be sure to install the dependencies as well:

pip install -r requirements.txt

Alternatively, to install dependencies using conda:

conda env create -f environment.yml
conda activate kglab

Then to run some simple uses of this library:

import kglab

# create a KnowledgeGraph object
kg = kglab.KnowledgeGraph()

# load RDF from a URL
kg.load_rdf("http://bigasterisk.com/foaf.rdf", format="xml")

# measure the graph
measure = kglab.Measure()
measure.measure_graph(kg)

print("edges: {}\n".format(measure.get_edge_count()))
print("nodes: {}\n".format(measure.get_node_count()))

# serialize as a string in "Turtle" TTL format
ttl = kg.save_rdf_text()
print(ttl)

See the tutorial notebooks in the examples subdirectory for sample code and patterns to use in integrating kglab with other graph libraries in Python: https://derwen.ai/docs/kgl/tutorial/

Contributing Code

We welcome people getting involved as contributors to this open source project!

For detailed instructions please see: CONTRIBUTING.md

Build Instructions Note: unless you are contributing code and updates, in most use cases won't need to build this package locally.

Instead, simply install from PyPi or use Conda.

To set up the build environment locally, see the "Build Instructions" section of the online documentation.

Semantic Versioning

Before kglab reaches release v1.0.0 the types and classes may undergo substantial changes and the project is not guaranteed to have a consistent API.

Even so, we'll try to minimize breaking changes. We'll also be sure to provide careful notes.

See: changelog.txt

illustration of a knowledge graph, plus laboratory glassware

License and Copyright

Source code for kglab plus its logo, documentation, and examples have an MIT license which is succinct and simplifies use in commercial applications.

All materials herein are Copyright © 2020-2021 Derwen, Inc.

Attribution

Please use the following BibTeX entry for citing kglab if you use it in your research or software. Citations are helpful for the continued development and maintenance of this library.

@software{kglab,
  author = {Paco Nathan},
  title = {{kglab: a simple abstraction layer in Python for building knowledge graphs}},
  year = 2020,
  publisher = {Derwen},
  doi = {10.5281/zenodo.4602403},
  url = {https://github.com/DerwenAI/kglab}
}

Kudos

Many thanks to our contributors: @ceteri, @gauravjaglan, @louisguitton, @jake-aft, @dmoore247, plus general support from Derwen, Inc., KFocus, the NVidia RAPIDS team, the KGC Community, Connected Data London, and Manning Publications.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].