rdf2vecgpu 0.2.2__tar.gz → 0.2.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {rdf2vecgpu-0.2.2 → rdf2vecgpu-0.2.3}/PKG-INFO +1 -1
- {rdf2vecgpu-0.2.2 → rdf2vecgpu-0.2.3}/pyproject.toml +5 -2
- {rdf2vecgpu-0.2.2 → rdf2vecgpu-0.2.3}/src/rdf2vecgpu/__init__.py +1 -1
- {rdf2vecgpu-0.2.2 → rdf2vecgpu-0.2.3}/src/rdf2vecgpu/gpu_rdf2vec.py +6 -6
- rdf2vecgpu-0.2.2/.python-version +0 -1
- rdf2vecgpu-0.2.2/.readthedocs.yml +0 -19
- rdf2vecgpu-0.2.2/data/.gitkeep +0 -0
- rdf2vecgpu-0.2.2/data_preparation/conversion_to_ttl.py +0 -19
- rdf2vecgpu-0.2.2/data_preparation/converstion_to_ttl.py +0 -17
- rdf2vecgpu-0.2.2/data_preparation/merge_text_file.py +0 -53
- rdf2vecgpu-0.2.2/doap.rdf +0 -43
- rdf2vecgpu-0.2.2/docs/Makefile +0 -20
- rdf2vecgpu-0.2.2/docs/make.bat +0 -35
- rdf2vecgpu-0.2.2/docs/requirements.txt +0 -2
- rdf2vecgpu-0.2.2/docs/source/_static/img/rdf2vecgpu_logo.png +0 -0
- rdf2vecgpu-0.2.2/docs/source/api/modules.rst +0 -7
- rdf2vecgpu-0.2.2/docs/source/api/src.corpus.rst +0 -15
- rdf2vecgpu-0.2.2/docs/source/api/src.corpus.walk_corpus.rst +0 -7
- rdf2vecgpu-0.2.2/docs/source/api/src.embedders.rst +0 -16
- rdf2vecgpu-0.2.2/docs/source/api/src.embedders.word2vec.rst +0 -7
- rdf2vecgpu-0.2.2/docs/source/api/src.embedders.word2vec_loader.rst +0 -7
- rdf2vecgpu-0.2.2/docs/source/api/src.gpu_rdf2vec.rst +0 -7
- rdf2vecgpu-0.2.2/docs/source/api/src.helper.functions.rst +0 -7
- rdf2vecgpu-0.2.2/docs/source/api/src.helper.rst +0 -15
- rdf2vecgpu-0.2.2/docs/source/api/src.logger.base.rst +0 -7
- rdf2vecgpu-0.2.2/docs/source/api/src.logger.mlflow_logger.rst +0 -7
- rdf2vecgpu-0.2.2/docs/source/api/src.logger.rst +0 -17
- rdf2vecgpu-0.2.2/docs/source/api/src.logger.wandb_logger.rst +0 -7
- rdf2vecgpu-0.2.2/docs/source/api/src.reader.kg_file_reader.rst +0 -7
- rdf2vecgpu-0.2.2/docs/source/api/src.reader.kg_reader.rst +0 -7
- rdf2vecgpu-0.2.2/docs/source/api/src.reader.rst +0 -16
- rdf2vecgpu-0.2.2/docs/source/api/src.rst +0 -27
- rdf2vecgpu-0.2.2/docs/source/conf.py +0 -86
- rdf2vecgpu-0.2.2/docs/source/dataload.rst +0 -108
- rdf2vecgpu-0.2.2/docs/source/gettingstarted.rst +0 -58
- rdf2vecgpu-0.2.2/docs/source/index.rst +0 -75
- rdf2vecgpu-0.2.2/docs/source/installation.rst +0 -132
- rdf2vecgpu-0.2.2/docs/source/modules.rst +0 -7
- rdf2vecgpu-0.2.2/docs/source/rdf2vecgpu.corpus.rst +0 -21
- rdf2vecgpu-0.2.2/docs/source/rdf2vecgpu.embedders.rst +0 -31
- rdf2vecgpu-0.2.2/docs/source/rdf2vecgpu.helper.rst +0 -21
- rdf2vecgpu-0.2.2/docs/source/rdf2vecgpu.logger.rst +0 -29
- rdf2vecgpu-0.2.2/docs/source/rdf2vecgpu.reader.rst +0 -29
- rdf2vecgpu-0.2.2/docs/source/rdf2vecgpu.rst +0 -33
- rdf2vecgpu-0.2.2/docs/source/training.rst +0 -54
- rdf2vecgpu-0.2.2/docs/source/vectorretrieval.rst +0 -28
- rdf2vecgpu-0.2.2/img/github_repo_header.png +0 -0
- rdf2vecgpu-0.2.2/jrdf2vec-1.3-SNAPSHOT.jar +0 -0
- rdf2vecgpu-0.2.2/performance/README.md +0 -14
- rdf2vecgpu-0.2.2/performance/env_files/jrdf2vec_environment.yml +0 -85
- rdf2vecgpu-0.2.2/performance/env_files/jrdf2vec_requirements.txt +0 -39
- rdf2vecgpu-0.2.2/performance/env_files/pyrdf2vec_environment.yml +0 -123
- rdf2vecgpu-0.2.2/performance/env_files/pyrdf2vec_requirements.txt +0 -77
- rdf2vecgpu-0.2.2/performance/env_files/rdf2vecgpu_environment.yml +0 -154
- rdf2vecgpu-0.2.2/performance/env_files/rdf2vecgpu_requirements.txt +0 -125
- rdf2vecgpu-0.2.2/performance/env_files/sparkrdf2vec_environment.yml +0 -179
- rdf2vecgpu-0.2.2/performance/env_files/sparkrdf2vec_requirements.txt +0 -36
- rdf2vecgpu-0.2.2/performance/evaluation_parameters.py +0 -12
- rdf2vecgpu-0.2.2/performance/gpu_rdf2vec_performance.py +0 -75
- rdf2vecgpu-0.2.2/performance/graph_creation.py +0 -38
- rdf2vecgpu-0.2.2/performance/graph_statistics.py +0 -41
- rdf2vecgpu-0.2.2/performance/jrdf2vec_based_performance.py +0 -116
- rdf2vecgpu-0.2.2/performance/pyrdf2vec_based_performance.py +0 -164
- rdf2vecgpu-0.2.2/performance/spark_rdf2vec_performance.py +0 -123
- rdf2vecgpu-0.2.2/performance/wandb_analysis.py +0 -41
- rdf2vecgpu-0.2.2/test/reader/functions_test.py +0 -45
- rdf2vecgpu-0.2.2/test/reader/kg_reader_test.py +0 -97
- {rdf2vecgpu-0.2.2 → rdf2vecgpu-0.2.3}/.gitignore +0 -0
- {rdf2vecgpu-0.2.2 → rdf2vecgpu-0.2.3}/LICENSE +0 -0
- {rdf2vecgpu-0.2.2 → rdf2vecgpu-0.2.3}/README.md +0 -0
- {rdf2vecgpu-0.2.2 → rdf2vecgpu-0.2.3}/src/rdf2vecgpu/corpus/__init__.py +0 -0
- {rdf2vecgpu-0.2.2 → rdf2vecgpu-0.2.3}/src/rdf2vecgpu/corpus/walk_corpus.py +0 -0
- {rdf2vecgpu-0.2.2 → rdf2vecgpu-0.2.3}/src/rdf2vecgpu/embedders/__init__.py +0 -0
- {rdf2vecgpu-0.2.2 → rdf2vecgpu-0.2.3}/src/rdf2vecgpu/embedders/word2vec.py +0 -0
- {rdf2vecgpu-0.2.2 → rdf2vecgpu-0.2.3}/src/rdf2vecgpu/embedders/word2vec_loader.py +0 -0
- {rdf2vecgpu-0.2.2 → rdf2vecgpu-0.2.3}/src/rdf2vecgpu/helper/__init__.py +0 -0
- {rdf2vecgpu-0.2.2 → rdf2vecgpu-0.2.3}/src/rdf2vecgpu/helper/functions.py +0 -0
- {rdf2vecgpu-0.2.2 → rdf2vecgpu-0.2.3}/src/rdf2vecgpu/logger/__init__.py +0 -0
- {rdf2vecgpu-0.2.2 → rdf2vecgpu-0.2.3}/src/rdf2vecgpu/logger/base.py +0 -0
- {rdf2vecgpu-0.2.2 → rdf2vecgpu-0.2.3}/src/rdf2vecgpu/logger/mlflow_logger.py +0 -0
- {rdf2vecgpu-0.2.2 → rdf2vecgpu-0.2.3}/src/rdf2vecgpu/logger/wandb_logger.py +0 -0
- {rdf2vecgpu-0.2.2 → rdf2vecgpu-0.2.3}/src/rdf2vecgpu/reader/__init__.py +0 -0
- {rdf2vecgpu-0.2.2 → rdf2vecgpu-0.2.3}/src/rdf2vecgpu/reader/kg_file_reader.py +0 -0
- {rdf2vecgpu-0.2.2 → rdf2vecgpu-0.2.3}/src/rdf2vecgpu/reader/kg_reader.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rdf2vecgpu
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.3
|
|
4
4
|
Summary: GPU-Accelerated RDF2Vec – A high-performance GPU implementation of RDF2Vec that uses CUDA and RAPIDS to generate scalable, embeddings for large dense knowledge graphs.
|
|
5
5
|
Project-URL: Homepage, https://github.com/MartinBoeckling/rdf2vecgpu
|
|
6
6
|
Project-URL: Issues, https://github.com/MartinBoeckling/rdf2vecgpu/issues
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "rdf2vecgpu"
|
|
3
|
-
version = "0.2.
|
|
3
|
+
version = "0.2.3"
|
|
4
4
|
description = "GPU-Accelerated RDF2Vec – A high-performance GPU implementation of RDF2Vec that uses CUDA and RAPIDS to generate scalable, embeddings for large dense knowledge graphs."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.12"
|
|
@@ -23,7 +23,10 @@ requires = ["hatchling"]
|
|
|
23
23
|
build-backend = "hatchling.build"
|
|
24
24
|
|
|
25
25
|
[tool.hatch.build.targets.wheel]
|
|
26
|
-
|
|
26
|
+
packages = ["src/rdf2vecgpu"]
|
|
27
|
+
|
|
28
|
+
[tool.hatch.build.targets.sdist]
|
|
29
|
+
include = ["src/rdf2vecgpu"]
|
|
27
30
|
|
|
28
31
|
[project.urls]
|
|
29
32
|
"Homepage" = "https://github.com/MartinBoeckling/rdf2vecgpu"
|
|
@@ -18,7 +18,7 @@ from .embedders.word2vec_loader import (
|
|
|
18
18
|
)
|
|
19
19
|
from .reader.kg_reader import read_kg_file
|
|
20
20
|
from .corpus.walk_corpus import single_gpu_walk_corpus, multi_gpu_walk_corpus
|
|
21
|
-
from .logger.mlflow_logger import make_tracker
|
|
21
|
+
# from .logger.mlflow_logger import make_tracker
|
|
22
22
|
import cudf
|
|
23
23
|
import dask.dataframe as dd
|
|
24
24
|
from loguru import logger
|
|
@@ -173,6 +173,8 @@ class GPU_RDF2Vec:
|
|
|
173
173
|
self.learning_rate = learning_rate
|
|
174
174
|
self.tune_batch_size = tune_batch_size
|
|
175
175
|
self.num_nodes = number_nodes
|
|
176
|
+
self.generate_artifact = generate_artifact
|
|
177
|
+
self.cpu_count = cpu_count
|
|
176
178
|
|
|
177
179
|
self._validate_config()
|
|
178
180
|
# Handle client
|
|
@@ -197,10 +199,9 @@ class GPU_RDF2Vec:
|
|
|
197
199
|
self.client = None
|
|
198
200
|
# Initialize the cugraph graph
|
|
199
201
|
self.knowledge_graph = Graph(directed=True)
|
|
200
|
-
|
|
202
|
+
|
|
201
203
|
self.word2vec_model = None
|
|
202
204
|
self.word2idx = None
|
|
203
|
-
self.cpu_count = cpu_count
|
|
204
205
|
self.comms_initialized = False # Track Comms initialization
|
|
205
206
|
|
|
206
207
|
def load_data(self, path: str) -> cudf.DataFrame:
|
|
@@ -441,8 +442,8 @@ class GPU_RDF2Vec:
|
|
|
441
442
|
>>> edges = rdf2vec.load_data("example.parquet")
|
|
442
443
|
>>> rdf2vec.fit(edges)
|
|
443
444
|
"""
|
|
444
|
-
if self.tracker:
|
|
445
|
-
|
|
445
|
+
# if self.tracker:
|
|
446
|
+
# self.tracker.start_pipeline(self.tracker_run_name, self.tracker_tags)
|
|
446
447
|
if self.multi_gpu:
|
|
447
448
|
walk_instance = multi_gpu_walk_corpus(
|
|
448
449
|
self.knowledge_graph,
|
|
@@ -563,7 +564,6 @@ class GPU_RDF2Vec:
|
|
|
563
564
|
steps_per_trial=1,
|
|
564
565
|
init_val=round(len(context_tensor) / (self.cpu_count * 2)),
|
|
565
566
|
max_trials=12,
|
|
566
|
-
num_nodes=self.num_nodes,
|
|
567
567
|
)
|
|
568
568
|
trainer.fit(word2vec_model, datamodule)
|
|
569
569
|
|
rdf2vecgpu-0.2.2/.python-version
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
3.12
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# Required
|
|
2
|
-
version: 2
|
|
3
|
-
|
|
4
|
-
sphinx:
|
|
5
|
-
# Path to your Sphinx configuration file.
|
|
6
|
-
configuration: docs/source/conf.py
|
|
7
|
-
|
|
8
|
-
# Image to use
|
|
9
|
-
build:
|
|
10
|
-
os: ubuntu-22.04
|
|
11
|
-
tools:
|
|
12
|
-
python: "3.12"
|
|
13
|
-
|
|
14
|
-
# Configuration
|
|
15
|
-
python:
|
|
16
|
-
install:
|
|
17
|
-
- requirements: docs/requirements.txt
|
|
18
|
-
- method: pip
|
|
19
|
-
path: .
|
rdf2vecgpu-0.2.2/data/.gitkeep
DELETED
|
File without changes
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
from src.reader.kg_reader import triple_to_ttl
|
|
2
|
-
|
|
3
|
-
if __name__ == "__main__":
|
|
4
|
-
graph_paths = [
|
|
5
|
-
("data/generated_graphs/barabasi_graph_100.parquet", "data/generated_graphs/barabasi_graph_100.ttl"),
|
|
6
|
-
("data/generated_graphs/barabasi_graph_1000.parquet", "data/generated_graphs/barabasi_graph_1000.ttl"),
|
|
7
|
-
("data/generated_graphs/barabasi_graph_10000.parquet", "data/generated_graphs/barabasi_graph_10000.ttl"),
|
|
8
|
-
("data/generated_graphs/erdos_renyi_graph_100.parquet", "data/generated_graphs/erdos_renyi_graph_100.ttl"),
|
|
9
|
-
("data/generated_graphs/erdos_renyi_graph_1000.parquet", "data/generated_graphs/erdos_renyi_graph_1000.ttl"),
|
|
10
|
-
("data/generated_graphs/erdos_renyi_graph_10000.parquet", "data/generated_graphs/erdos_renyi_graph_10000.ttl"),
|
|
11
|
-
("data/generated_graphs/random_graph_100.parquet", "data/generated_graphs/random_graph_100.ttl"),
|
|
12
|
-
("data/generated_graphs/random_graph_1000.parquet", "data/generated_graphs/random_graph_1000.ttl"),
|
|
13
|
-
("data/generated_graphs/random_graph_10000.parquet", "data/generated_graphs/random_graph_10000.ttl"),
|
|
14
|
-
("data/wikidata5m/wikidata5m_kg.parquet", "data/wikidata5m/wikidata5m_kg.ttl"),
|
|
15
|
-
|
|
16
|
-
]
|
|
17
|
-
|
|
18
|
-
for source_path, destination_path in graph_paths:
|
|
19
|
-
triple_to_ttl(file_path=source_path, destination_path=destination_path)
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
from src.reader.kg_reader import triple_to_ttl
|
|
2
|
-
|
|
3
|
-
if __name__ == "__main__":
|
|
4
|
-
graph_paths = [
|
|
5
|
-
("data/generated_graphs/barabasi_graph_100.parquet", "data/generated_graphs/barabasi_graph_100.ttl"),
|
|
6
|
-
("data/generated_graphs/barabasi_graph_1000.parquet", "data/generated_graphs/barabasi_graph_1000.ttl"),
|
|
7
|
-
("data/generated_graphs/barabasi_graph_10000.parquet", "data/generated_graphs/barabasi_graph_10000.ttl"),
|
|
8
|
-
("data/generated_graphs/erdos_renyi_graph_100.parquet", "data/generated_graphs/erdos_renyi_graph_100.ttl"),
|
|
9
|
-
("data/generated_graphs/erdos_renyi_graph_1000.parquet", "data/generated_graphs/erdos_renyi_graph_1000.ttl"),
|
|
10
|
-
("data/generated_graphs/erdos_renyi_graph_10000.parquet", "data/generated_graphs/erdos_renyi_graph_10000.ttl"),
|
|
11
|
-
("/ceph/mboeckli/rdf2vecgpu/data/generated_graphs/random_graph_100.parquet", "/ceph/mboeckli/rdf2vecgpu/data/generated_graphs/random_graph_100.ttl"),
|
|
12
|
-
("/ceph/mboeckli/rdf2vecgpu/data/generated_graphs/random_graph_1000.parquet", "/ceph/mboeckli/rdf2vecgpu/data/generated_graphs/random_graph_1000.ttl"),
|
|
13
|
-
("/ceph/mboeckli/rdf2vecgpu/data/generated_graphs/random_graph_10000.parquet", "/ceph/mboeckli/rdf2vecgpu/data/generated_graphs/random_graph_10000.ttl")
|
|
14
|
-
]
|
|
15
|
-
|
|
16
|
-
for source_path, destination_path in graph_paths:
|
|
17
|
-
triple_to_ttl(file_path=source_path, destination_path=destination_path)
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
from rdflib import Graph as RDFGraph, URIRef
|
|
2
|
-
import pandas as pd
|
|
3
|
-
from tqdm.auto import tqdm
|
|
4
|
-
|
|
5
|
-
def merge_graph_files(input_files: list, output_file: str, file_format: str) -> None:
|
|
6
|
-
"""_summary_
|
|
7
|
-
|
|
8
|
-
Args:
|
|
9
|
-
input_files (list): _description_
|
|
10
|
-
output_file (str): _description_
|
|
11
|
-
format (str): _description_
|
|
12
|
-
|
|
13
|
-
Raises:
|
|
14
|
-
ValueError: _description_
|
|
15
|
-
"""
|
|
16
|
-
train_path, valid_path, test_path = input_files
|
|
17
|
-
|
|
18
|
-
train_data = pd.read_csv(train_path, sep="\t", header=None)
|
|
19
|
-
train_data.columns = ["subject", "predicate", "object"]
|
|
20
|
-
|
|
21
|
-
validation_data = pd.read_csv(valid_path, sep="\t", header=None)
|
|
22
|
-
validation_data.columns = ["subject", "predicate", "object"]
|
|
23
|
-
|
|
24
|
-
test_data = pd.read_csv(test_path, sep="\t", header=None)
|
|
25
|
-
test_data.columns = ["subject", "predicate", "object"]
|
|
26
|
-
|
|
27
|
-
merged_triple = pd.concat([train_data, validation_data, test_data], axis=0)
|
|
28
|
-
|
|
29
|
-
if file_format == "parquet":
|
|
30
|
-
merged_triple.to_parquet(output_file)
|
|
31
|
-
elif file_format == "ttl":
|
|
32
|
-
g = RDFGraph()
|
|
33
|
-
for _, row in tqdm(merged_triple.iterrows(), total=merged_triple.shape[0]):
|
|
34
|
-
subj = URIRef(row['subject'])
|
|
35
|
-
pred = URIRef(row['predicate'])
|
|
36
|
-
obj = URIRef(row['object'])
|
|
37
|
-
g.add((subj, pred, obj))
|
|
38
|
-
|
|
39
|
-
g.serialize(destination=output_file, format='turtle')
|
|
40
|
-
|
|
41
|
-
else:
|
|
42
|
-
raise ValueError("Unsupported format. Use 'parquet' or 'ttl'.")
|
|
43
|
-
|
|
44
|
-
if __name__ == "__main__":
|
|
45
|
-
file_list = ["data/wikidata5m/wikidata5m_transductive_train.txt",
|
|
46
|
-
"data/wikidata5m/wikidata5m_transductive_valid.txt",
|
|
47
|
-
"data/wikidata5m/wikidata5m_transductive_test.txt"]
|
|
48
|
-
merge_graph_files(input_files=file_list, output_file="data/wikidata5m/wikidata5m_kg.ttl", file_format="ttl")
|
|
49
|
-
file_list = ["data/fb15k-237/Release/train.txt",
|
|
50
|
-
"data/fb15k-237/Release/valid.txt",
|
|
51
|
-
"data/fb15k-237/Release/test.txt"]
|
|
52
|
-
merge_graph_files(input_files=file_list, output_file="data/fb15k-237/fb15k_kg.ttl", file_format="ttl")
|
|
53
|
-
merge_graph_files(input_files=file_list, output_file="data/wikidata5m/wikidata5m_kg.ttl", file_format="ttl")
|
rdf2vecgpu-0.2.2/doap.rdf
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
3
|
-
xmlns:doap="http://usefulinc.com/ns/doap#"
|
|
4
|
-
xmlns:foaf="http://xmlns.com/foaf/0.1/">
|
|
5
|
-
|
|
6
|
-
<doap:Project>
|
|
7
|
-
<doap:name>rdf2vecgpu</doap:name>
|
|
8
|
-
<doap:shortdesc>A GPU-accelerated RDF2Vec implementation using RAPIDS and CUDA.</doap:shortdesc>
|
|
9
|
-
<doap:description>
|
|
10
|
-
GPU-Accelerated RDF2Vec - A high-performance GPU implementation of RDF2Vec that uses CUDA and
|
|
11
|
-
RAPIDS to generate scalable, embeddings for large dense knowledge graphs.
|
|
12
|
-
</doap:description>
|
|
13
|
-
<doap:homepage rdf:resource="https://github.com/MartinBoeckling/rdf2vecgpu" />
|
|
14
|
-
<doap:created>2025-07-29</doap:created>
|
|
15
|
-
<doap:programming-language>Python</doap:programming-language>
|
|
16
|
-
<doap:license rdf:resource="https://opensource.org/licenses/MIT" />
|
|
17
|
-
<doap:bug-database rdf:resource="https://github.com/MartinBoeckling/rdf2vecgpu/issues" />
|
|
18
|
-
|
|
19
|
-
<doap:repository>
|
|
20
|
-
<doap:GitRepository>
|
|
21
|
-
<doap:location rdf:resource="https://github.com/MartinBoeckling/rdf2vecgpu.git" />
|
|
22
|
-
<doap:browse rdf:resource="https://github.com/MartinBoeckling/rdf2vecgpu" />
|
|
23
|
-
</doap:GitRepository>
|
|
24
|
-
</doap:repository>
|
|
25
|
-
|
|
26
|
-
<doap:release>
|
|
27
|
-
<doap:Version>
|
|
28
|
-
<doap:revision>0.2.1</doap:revision>
|
|
29
|
-
<doap:created>2025-11-02</doap:created>
|
|
30
|
-
<doap:download-page rdf:resource="https://pypi.org/project/rdf2vecgpu/" />
|
|
31
|
-
</doap:Version>
|
|
32
|
-
</doap:release>
|
|
33
|
-
|
|
34
|
-
<doap:maintainer>
|
|
35
|
-
<foaf:Person>
|
|
36
|
-
<foaf:name>Martin Böckling</foaf:name>
|
|
37
|
-
</foaf:Person>
|
|
38
|
-
</doap:maintainer>
|
|
39
|
-
|
|
40
|
-
<doap:category rdf:resource="http://dbpedia.org/resource/Artificial_intelligence" />
|
|
41
|
-
</doap:Project>
|
|
42
|
-
|
|
43
|
-
</rdf:RDF>
|
rdf2vecgpu-0.2.2/docs/Makefile
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# Minimal makefile for Sphinx documentation
|
|
2
|
-
#
|
|
3
|
-
|
|
4
|
-
# You can set these variables from the command line, and also
|
|
5
|
-
# from the environment for the first two.
|
|
6
|
-
SPHINXOPTS ?=
|
|
7
|
-
SPHINXBUILD ?= sphinx-build
|
|
8
|
-
SOURCEDIR = source
|
|
9
|
-
BUILDDIR = build
|
|
10
|
-
|
|
11
|
-
# Put it first so that "make" without argument is like "make help".
|
|
12
|
-
help:
|
|
13
|
-
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
|
14
|
-
|
|
15
|
-
.PHONY: help Makefile
|
|
16
|
-
|
|
17
|
-
# Catch-all target: route all unknown targets to Sphinx using the new
|
|
18
|
-
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
|
|
19
|
-
%: Makefile
|
|
20
|
-
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
rdf2vecgpu-0.2.2/docs/make.bat
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
@ECHO OFF
|
|
2
|
-
|
|
3
|
-
pushd %~dp0
|
|
4
|
-
|
|
5
|
-
REM Command file for Sphinx documentation
|
|
6
|
-
|
|
7
|
-
if "%SPHINXBUILD%" == "" (
|
|
8
|
-
set SPHINXBUILD=sphinx-build
|
|
9
|
-
)
|
|
10
|
-
set SOURCEDIR=source
|
|
11
|
-
set BUILDDIR=build
|
|
12
|
-
|
|
13
|
-
%SPHINXBUILD% >NUL 2>NUL
|
|
14
|
-
if errorlevel 9009 (
|
|
15
|
-
echo.
|
|
16
|
-
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
|
|
17
|
-
echo.installed, then set the SPHINXBUILD environment variable to point
|
|
18
|
-
echo.to the full path of the 'sphinx-build' executable. Alternatively you
|
|
19
|
-
echo.may add the Sphinx directory to PATH.
|
|
20
|
-
echo.
|
|
21
|
-
echo.If you don't have Sphinx installed, grab it from
|
|
22
|
-
echo.https://www.sphinx-doc.org/
|
|
23
|
-
exit /b 1
|
|
24
|
-
)
|
|
25
|
-
|
|
26
|
-
if "%1" == "" goto help
|
|
27
|
-
|
|
28
|
-
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
|
|
29
|
-
goto end
|
|
30
|
-
|
|
31
|
-
:help
|
|
32
|
-
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
|
|
33
|
-
|
|
34
|
-
:end
|
|
35
|
-
popd
|
|
Binary file
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
src.embedders package
|
|
2
|
-
=====================
|
|
3
|
-
|
|
4
|
-
.. automodule:: src.embedders
|
|
5
|
-
:members:
|
|
6
|
-
:show-inheritance:
|
|
7
|
-
:undoc-members:
|
|
8
|
-
|
|
9
|
-
Submodules
|
|
10
|
-
----------
|
|
11
|
-
|
|
12
|
-
.. toctree::
|
|
13
|
-
:maxdepth: 4
|
|
14
|
-
|
|
15
|
-
src.embedders.word2vec
|
|
16
|
-
src.embedders.word2vec_loader
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
src.logger package
|
|
2
|
-
==================
|
|
3
|
-
|
|
4
|
-
.. automodule:: src.logger
|
|
5
|
-
:members:
|
|
6
|
-
:show-inheritance:
|
|
7
|
-
:undoc-members:
|
|
8
|
-
|
|
9
|
-
Submodules
|
|
10
|
-
----------
|
|
11
|
-
|
|
12
|
-
.. toctree::
|
|
13
|
-
:maxdepth: 4
|
|
14
|
-
|
|
15
|
-
src.logger.base
|
|
16
|
-
src.logger.mlflow_logger
|
|
17
|
-
src.logger.wandb_logger
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
src package
|
|
2
|
-
===========
|
|
3
|
-
|
|
4
|
-
.. automodule:: src
|
|
5
|
-
:members:
|
|
6
|
-
:show-inheritance:
|
|
7
|
-
:undoc-members:
|
|
8
|
-
|
|
9
|
-
Subpackages
|
|
10
|
-
-----------
|
|
11
|
-
|
|
12
|
-
.. toctree::
|
|
13
|
-
:maxdepth: 4
|
|
14
|
-
|
|
15
|
-
src.corpus
|
|
16
|
-
src.embedders
|
|
17
|
-
src.helper
|
|
18
|
-
src.logger
|
|
19
|
-
src.reader
|
|
20
|
-
|
|
21
|
-
Submodules
|
|
22
|
-
----------
|
|
23
|
-
|
|
24
|
-
.. toctree::
|
|
25
|
-
:maxdepth: 4
|
|
26
|
-
|
|
27
|
-
src.gpu_rdf2vec
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
# Configuration file for the Sphinx documentation builder.
|
|
2
|
-
#
|
|
3
|
-
# For the full list of built-in configuration values, see the documentation:
|
|
4
|
-
# https://www.sphinx-doc.org/en/master/usage/configuration.html
|
|
5
|
-
|
|
6
|
-
# -- Project information -----------------------------------------------------
|
|
7
|
-
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
|
|
8
|
-
|
|
9
|
-
import os
|
|
10
|
-
import sys
|
|
11
|
-
|
|
12
|
-
# Make both the repo root and src discoverable
|
|
13
|
-
DOCS_DIR = os.path.abspath(os.path.dirname(__file__))
|
|
14
|
-
REPO_ROOT = os.path.abspath(os.path.join(DOCS_DIR, "..", ".."))
|
|
15
|
-
SRC_DIR = os.path.join(REPO_ROOT, "src")
|
|
16
|
-
sys.path.insert(0, REPO_ROOT)
|
|
17
|
-
sys.path.insert(0, SRC_DIR)
|
|
18
|
-
|
|
19
|
-
project = "rdf2vecgpu"
|
|
20
|
-
copyright = "2025, Martin Boeckling"
|
|
21
|
-
author = "Martin Boeckling"
|
|
22
|
-
|
|
23
|
-
# -- General configuration ---------------------------------------------------
|
|
24
|
-
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
|
|
25
|
-
|
|
26
|
-
extensions = [
|
|
27
|
-
"sphinx.ext.autodoc",
|
|
28
|
-
"sphinx.ext.napoleon",
|
|
29
|
-
"sphinx.ext.viewcode",
|
|
30
|
-
"sphinx.ext.autosummary",
|
|
31
|
-
"sphinx.ext.intersphinx", # cross-project links
|
|
32
|
-
"sphinx.ext.autosectionlabel",
|
|
33
|
-
"sphinxemoji.sphinxemoji",
|
|
34
|
-
]
|
|
35
|
-
extensions += ["sphinx.ext.autosummary"]
|
|
36
|
-
autosummary_generate = True
|
|
37
|
-
# Make index.rst the landing page (avoid README as root)
|
|
38
|
-
root_doc = "index"
|
|
39
|
-
# Prefix section labels with the document path to avoid duplicates
|
|
40
|
-
autosectionlabel_prefix_document = True
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
# Sensible defaults for autodoc
|
|
44
|
-
autodoc_default_options = {
|
|
45
|
-
"members": True,
|
|
46
|
-
"undoc-members": True,
|
|
47
|
-
"show-inheritance": True,
|
|
48
|
-
"inherited-members": True,
|
|
49
|
-
}
|
|
50
|
-
add_module_names = False
|
|
51
|
-
autodoc_typehints = "description"
|
|
52
|
-
|
|
53
|
-
# Mock heavy/optional GPU deps so autodoc doesn’t fail on missing libs
|
|
54
|
-
autodoc_mock_imports = [
|
|
55
|
-
"cudf",
|
|
56
|
-
"cupy",
|
|
57
|
-
"cugraph",
|
|
58
|
-
"dask_cudf",
|
|
59
|
-
"dask_cuda",
|
|
60
|
-
"dask",
|
|
61
|
-
"torch",
|
|
62
|
-
"lightning",
|
|
63
|
-
"pytorch_lightning",
|
|
64
|
-
"igraph",
|
|
65
|
-
"pyspark",
|
|
66
|
-
"sparkkgml",
|
|
67
|
-
]
|
|
68
|
-
|
|
69
|
-
# Optionally, pick up package version automatically
|
|
70
|
-
try:
|
|
71
|
-
from rdf2vecgpu import __version__ as release
|
|
72
|
-
except Exception:
|
|
73
|
-
try:
|
|
74
|
-
from src import __version__ as release # src/__init__.py exports __version__
|
|
75
|
-
except Exception:
|
|
76
|
-
release = "0.0.0"
|
|
77
|
-
|
|
78
|
-
templates_path = ["_templates"]
|
|
79
|
-
exclude_patterns = []
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
# -- Options for HTML output -------------------------------------------------
|
|
83
|
-
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
|
|
84
|
-
|
|
85
|
-
html_theme = "furo"
|
|
86
|
-
html_static_path = ["_static"]
|