
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
A flexible, scalable pipeline for integration and alignment of multiple data sources. The code is written to be adaptable to all kinds of data, ontologies (https://www.w3.org/OWL/), or reasoning profiles, and output is compatible with any type of storage technology.
A good way to start with the ontology-data-pipeline is to fork or clone one of the applications which use this code. This includes:
Step 1: https://docs.docker.com/install/
Step 2: Run the application. On the commandline, you can execute the script like so:
# make sure you have the latest docker container docker pull jdeck88/ontology-data-pipeline # run the pipeline help in the docker container docker run -v "$(pwd)":/process -w=/app -ti jdeck88/ontology-data-pipeline python pipeline.py -h
!https://raw.githubusercontent.com/biocodellc/ontology-data-pipeline/master/pipelineImage.png
The ontology-data-pipeline operates on a set of configuration files, which you can specify in the configuration directory.
The following text describes the operation of the pipeline and the steps involved.
Triplifier
This step provides provides basic data validation and generates the RDF triples, assuming validation passes, needed
for the reasoning phase. Each project will need to contain a config directory with the following files that will
be used to triplify the preprocessed data:
NOTE: Wherever there is a uri expressed in any of the following files, you have the option of using ontology label substitution.
If the uri is of the format {label name here}, the appropriate uri will be substituted from the provided ontology. See the https://github.com/stuckyb/ontopilot/wiki/Ontology-development#column-names-for-all-ontology-entities for details term identifier abbreviations.
Reasoning
This step uses the https://github.com/stuckyb/ontopilot project to perform reasoning on the triplified data in the triplifier step, in conjunction with logic contained in the provided ontology.
Data Formatting
This step takes the provided sparql query and generates csv files for each file outputted in the Reasoning step. If no sparql query is found, then this step is skipped.
Project configuration files include entity.csv, mapping.csv, relations.csv, and any files defining controlled vocabularies that we want to map rdf:types to. The remaining configuration files below are found in the config directory. Together, these are the required configuration files we use for reasoning against the application ontology (e.g. https://github.com/PlantPhenoOntology/PPO/). These files configure the data validation, triplifying, reasoning, and rdf2csv converting.
The following files are required:
entity.csv (found in each project directory) - This file specifies the entities (instances of classes) to create when triplifying. The file expects the following columns:
alias
The name used to refer to the entity. This is usually a shortened version of the class label.
concept_uri
The uri which defines this entity (class).
unique_key
The column name that is used to uniquely identify the entity. Whenever there is a unique value for the property specified by "unique key", a new instance will be created. e.g. "record_id"
identifier_root
The identifier root for each unique entity (instance created). E.g. urn:observingprocess/ would be the root of urn:observingprocess/record1
mapping.csv (found in each project directory)
column
The name of the column in the csv file to be used for triplifying
uri
The uri which defines this column. These generally are data properties.
entity_alias
The alias of the entity (from entity.csv) this column is a property of
relations.csv (found in each project directory)
subject_entity_alias
The alias of the entity which is the subject of this relationship
predicate
The uri which defines the relationship
object_entity_alias
The alias of the entity which is the object of this relationship
The terms in this file come from the source ontology.
excluded_types.csv - Used by ontopilot to specify the ontology classes for which instances will NOT be created during reasoning. You can choose to exlude a class or its ancestors or both. This prevents the creation of unneeded instances for root level classes on which no one is likely to query.
reasoner.conf - ontopilot inferencing configuration file
The following files are optional:
rules.csv - This file is used to setup basic validation rules for the data. The file expects the following columns:
rule
The name of the validation rule to apply. See rule types below. Note: a default ControlledVocabulary
rule will be applied to the phenophase_name column for the names found in the phenophase_descriptions.csv
file
columns
Pipe | delimited list of columns to apply the rule to
level
Either WARNING or ERROR. ERROR will terminate the program after validation. WARNINGS will be logged.
Case-Insensitive. Defaults to WARNING
list
Only applicable for ControlledVocabulary rules. This refers to the name of the file that contains the list of
the controlled vocab
RequiredValue - Specifies columns which can not be e***yUniqueValue - Checks that the values in a column are uniqueControlledVocabulary - Checks columns against a list of controlled vocabulary. The name of the list is specified in
the list column in rules.csvInteger - Checks that all values are integers. Will coerce values to integers if possibleFloat - Checks that all values are floating point numbers (ex. 1.00). Will coerce values to floats if possibleAny file specified in rules.csv list column is required. The file expects the following columns:
field - Specifies a valid value. This is the values expected in the input data filedefined_by - Optional value which will replace the field when writing triplesfetch_reasoned.sparql - Sparql query used to convert reasoned data to csv
The ontology-data-pipeline is designed to be run as a Docker container. However, you can also run the codebase from sources by checking out this repository and following the instructions at python instructions. Information on building the docker container is contained at docker instructions.
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务