In situations like this, you can use SPARQL's alternative matches feature to write queries that return whichever of the properties is available.
在这种情况下,可以用SPARQL的替代匹配特性来编写查询,该查询返回任何可用的属性。
Without this option, any read or write operation will return an error if the server wants a new handshake, setting the retry flag in the process.
如果没有这个选项,当服务器希望进行一次新的握手时,进行读或写操作都将返回一个错误,同时还会在该过程中设置retry标记。
By now, you've seen how to write XQueries that retrieve XML document fragments, create new forms of XML output, and return different output based on conditions specified in queries themselves.
至此,您已经看到了如何编写XQuery来检索XML文档片段,创建新格式的XML输出,以及根据查询中指定的条件返回不同的输出。
In fact, you can actually write the server-side script in any language that can be called from your Web server and return its result to the client.
实际上,可以用任何语言编写服务器端脚本,只要能够从Web服务器调用它并把结果返回给客户机。
It is not hard, of course, to simply write a compute function that builds in the different return types; the decorator only takes a few lines, after all.
当然,简单地编写一个具有不同返回类型的compute函数并不困难;毕竟decorator只需占据几行。
Our simple testable class will return whatever string we pass in, so let's start evaluating the results. If we were coding raw JUnit classes we would write something like this
我们建立的简单的可测试的类将返回传递的任何字符串,所以让我们评估一下这个结果。
One of the practices of test-driven development (TDD) is to write the tests first, then "do the simplest thing that could possibly work" -- in this case, return 6.
测试驱动的开发 (TDD)中的一个练习就是首先编写测试,然后执行可能运行的最简单的操作 —— 如本例中的 return 6。
If you return a null array, the clients of the code must write extra code to check whether the return value is null (as shown in Listing 13).
如果您返回零数组,该代码的客户端必须编写额外的代码来检查返回值是否为零(如清单13所示)。
Although it might be nice to create extensive tests for every method you write, you must decide how much you can actually do and whether the return will warrant the time you put in.
尽管为每个您撰写的方法创建多种测试是非常不错的,但您必须决定您实际能测试多少,结果是否能体现出您所投入的时间。
Also note that the result of the write system call is the number of characters written — in this case, 17 plus one carriage return.
还可以注意到,write系统调用的结果是写入字符的个数数目,在这个示例中为17加上一个回车。
In this case, you'll receive a SIGPIPE signal or, if this signal is blocked, the write function will return a -1 and set errno to EPIPE.
在这种情况下,接收SIGPIPE信号,或如果该信号阻塞,write函数将返回- 1并设置errno为epipe。
Write a function that takes in a string parameter and checks to see whether or not it is an integer, and if it is then return the integer value.
写一功能接连不断花费参数并且检查看见一整数是否,那时如果返回整数价值。
Write out a clear statement of that purpose and your plan for attaining it. Include a statement of what you intend to give in return for its realization.
清楚地写下你的目标、达到目标的计划,以及为了达到目标你愿意做的付出。
Check your voicemails twice a day only! Write down the message in your organizer. return all of the calls before you check your voicemail again.
每天仅检查两次你的语音邮箱!在你的记录簿里面写下听到的信息。在你再次检查语音邮件之前把所有的电话都回掉。
After fruitless years of trying to start a business in the new Russia of the 1990s, Katayev deposited his papers at the Hoover library, perhaps hoping someday to return to write about them.
在1990年代的新俄罗斯徒劳创业多年后,Katayev把他的文件存放在了Hoover图书馆,也许希望将来有天回来写回忆录。
Peony and fertilizer heavily in part with the jade bracelet in the box on the cloth write a letter, then pretend dont like bracelets please w. connor will also return.
牡丹也故技重施在装玉镯的盒子里的布上写好了回信,然后佯装不喜欢镯子请马戎将之还回。
Pack disordered mood, looking forward to the first smiling face, new book, I will smile in return, I will write poetry in the title page.
收拾紊乱的心绪,期待着第一个笑脸,第一本旧书,我会报之以浅笑,我会在扉页写诗。
Pack disordered mood, looking forward to the first smiling face, new book, I will smile in return, I will write poetry in the title page.
收拾紊乱的心绪,期待着第一个笑脸,第一本旧书,我会报之以浅笑,我会在扉页写诗。
应用推荐