欧美性猛交XXXX免费看蜜桃,成人网18免费韩国,亚洲国产成人精品区综合,欧美日韩一区二区三区高清不卡,亚洲综合一区二区精品久久

打開(kāi)APP
userphoto
未登錄

開(kāi)通VIP,暢享免費電子書(shū)等14項超值服

開(kāi)通VIP
ARQ - SPARQL Tutorial - First Query

SPARQL Tutorial - A First SPARQL Query

In this section, we look at a simple first query and show how to execute it with ARQ.

A "hello world" of queries

The file "

SELECT ?xWHERE { ?x  <http://www.w3.org/2001/vcard-rdf/3.0#FN>  "John Smith" }

executing that query with the command line query application;

---------------------------------| x                             |=================================| <http://somewhere/JohnSmith/> |---------------------------------

This works by matching the triple pattern in the WHERE clause against the triples in the RDF graph. The predicate and object of the triple are fixed values so the pattern is going to match only triples with those values. The subject is a variable, and there are no other restrictions on the variable. The pattern matches any triples with these predicate and object values, and it matches with solutions for x.

The item enclosed in <> is a URI (actually, it's an IRI) and the item enclosed in "" is a plain literal. Just like Turtle, N3 or N-triples, typed literals are written with ^^ and language tags can be added with @.

x is a variable called x. The ? does not form part of the name which is why it does not appear in the table output.

There is one match. The query returns the match in the x query variable. The output shown was obtained by using one of ARQ's command line applications.

Executing the query

There are helper scripts in the ARQ bat/ and bin/ directories of the ARQ distribution. They may not be in a Jena distribution. You should check these scripts before use.

Windows setup

Set the ARQROOT environment variable to the file location of the ARQ distribution.

set ARQROOT=c:\MyProjects\ARQ

The distribution usually has the version number in the directory name.

In the ARQ directory, execute:

bat\sparql.bat --data=doc\Tutorial\vc-db-1.rdf --query=doc\Tutorial\q1.rq

You can just put the bat/ directory on your classpath or copy the programs out of it. They all depend on ARQROOT.

bash scripts for Linux/Cygwin/Unix

Set the ARQROOT environment variable to the file location of the ARQ distribution.

export ARQROOT=$HOME/MyProjects/ARQ

The distribution usually has the version number in the directory name.

In the ARQ directory, execute:

bin/sparql --data=doc/Tutorial/vc-db-1.rdf --query=doc/Tutorial/q1.rq

You can just put the bin/ directory on your classpath or copy the programs out of it. They all depend on ARQROOT.

Cygwin is a Linux-like environment for Windows.

Using the Java command line applications directly

You will need to set the classpath to include all the jar files in the ARQ lib/ directory.

For example, on Windows:

ARQdir\lib\antlr-2.7.5.jar;ARQdir\lib\arq-extra.jar;ARQdir\lib\arq.jar;ARQdir\lib\commons-logging-1.1.jar;ARQdir\lib\concurrent.jar;ARQdir\lib\icu4j_3_4.jar;ARQdir\lib\iri.jar;ARQdir\lib\jena.jar;ARQdir\lib\jenatest.jar;ARQdir\lib\json.jar;ARQdir\lib\junit.jar;ARQdir\lib\log4j-1.2.12.jar;ARQdir\lib\lucene-core-2.2.0.jar;ARQdir\lib\stax-api-1.0.jar;ARQdir\lib\wstx-asl-3.0.0.jar;ARQdir\lib\xercesImpl.jar;ARQdir\lib\xml-apis.jar

where ARQdir is where you unpacked ARQ. This must be all one line.

The names of jar files sometimes changes and new jar files do get added - do check this list with your version of ARQ.

The commands themselves are in the arq package.

Next: Basic Patterns

本站僅提供存儲服務(wù),所有內容均由用戶(hù)發(fā)布,如發(fā)現有害或侵權內容,請點(diǎn)擊舉報。
打開(kāi)APP,閱讀全文并永久保存 查看更多類(lèi)似文章
猜你喜歡
類(lèi)似文章
解決maven無(wú)法加載本地lib/下的jar包問(wèn)題
讓Nutch支持中文分詞
jmeter 性能測試 數據庫連接查詢(xún)知識點(diǎn)
環(huán)境變量
JDK、JRE、JVM之間的關(guān)系
spring
更多類(lèi)似文章 >>
生活服務(wù)
分享 收藏 導長(cháng)圖 關(guān)注 下載文章
綁定賬號成功
后續可登錄賬號暢享VIP特權!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服

欧美性猛交XXXX免费看蜜桃,成人网18免费韩国,亚洲国产成人精品区综合,欧美日韩一区二区三区高清不卡,亚洲综合一区二区精品久久