php-task-runner/sparql-robo-tasks
Composer 安装命令:
composer require php-task-runner/sparql-robo-tasks
包简介
Provides SPARQL commands for Robo
关键字:
README 文档
README
This repository provides SPARQL tasks for Robo.
Install note
Until easyrdf/easyrdf package will get stable 1.0.0 release, the root Composer
file will have to explicitly require easyrdf/easyrdf. See this issue for
details: easyrdf/easyrdf#320. After EasyRDF will be
stabilised, the library will be moved back to require section.
Tasks
Query
$query1 = 'SELECT ?s ?p ?o WHERE { ?s ?p ?o } LIMIT 100'; $query2 = '...'; $result = $this->taskSparqlQuery() ->setEndpointUrl('http://example.com/sparql') ->addQuery($query1) ->addQuery($query2) ->run(); // Result of $query1. $res1 = $result->getData()['result'][$query1]; // Result of $query2. $res2 = $result->getData()['result'][$query2];
Import triples from strings
$triples1 = <<<TRIPLES <?xml version="1.0"?> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:si="https://www.w3schools.com/rdf/"> <rdf:Description rdf:about="https://www.w3schools.com"> <si:title>W3Schools</si:title> <si:author>Jan Egil Refsnes</si:author> </rdf:Description> </rdf:RDF> TRIPLES; $triples2 = <<<TRIPLES <?xml version="1.0"?> <RDF> <Description about="https://www.w3schools.com/rdf"> <author>Jan Egil Refsnes</author> <homepage>https://www.w3schools.com</homepage> </Description> </RDF> TRIPLES; $this->taskSparqlImportFromString() ->setEndpointUrl('http://example.com/sparql-graph-crud') ->addTriples('http://example.com/graph1', $triples1) ->addTriples('http://example.com/graph2', $triples2) ->run();
Import triples from files
$this->taskSparqlImportFromFile() ->setEndpointUrl('http://example.com/sparql-graph-crud') ->addTriples('http://example.com/graph1', '/path/to/file.rdf') ->addTriples('http://example.com/graph2', '/other/path/to/file2.rdf') ->run();
php-task-runner/sparql-robo-tasks 适用场景与选型建议
php-task-runner/sparql-robo-tasks 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 19.77k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2020 年 06 月 21 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「task-runner」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 php-task-runner/sparql-robo-tasks 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 php-task-runner/sparql-robo-tasks 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 php-task-runner/sparql-robo-tasks 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PHP task runner based on Robo, focused on extensibility.
OpenEuropa TaskRunner command to symlink a Drupal project codebase within a development site, built locally via Composer.
OpenEuropa TaskRunner command to ensure all Behat tests have batch tags.
Tool for managing fast both asynchronous and multi-threaded execution of tasks. Focused on performance and pleasant CLI interface.
Provides a task runner command to compile SCSS to CSS.
Provides Redis commands for OpenEuropa Task Runner
统计信息
- 总下载量: 19.77k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 20
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: EUPL-1.2
- 更新时间: 2020-06-21