LINK in the SPARQL where

I am new to SPARQL and RDF, so hopefully there is a simple answer to this question.

I use Jena Oracle links to tests.  My tests are based on the examples of Jena, who all work.  This specific test is based on Test8.java in the examples of Jena. I added the Spatial index and was able to make spatial queries in RDF.  But now, I want to call a spatial function and the return value, rather than simply use it in a FILTER.

My query looks like this (get the parents and their children and tell me how far away they live):

PREFIX orageo: http://xmlns.Oracle.com/RDF/geo/ >

SELECT? s? o? geom1? geom2? dist2

WHERE {}

? s < u: parentOf >? o.

? s < u: livesAt >? geom1.

? o < u: livesAt >? geom2.

BIND (orageo:distance (geom1, geom2, 'KM') as? dist2)

}


I tried using the form LET instead of bind, but Jena rejected this form.  I also tried to use a function in the SELECT, but from what I read it looks like that could be limited to a certain the value of the aggregate functions.


LET generates syntax errors, BIND get empty results.


As a reference, this type of query works:


PREFIX orageo: http://xmlns.Oracle.com/RDF/geo/ >

SELECT? s? geom

WHERE {? s < u: livesAt >? geom}

FILTER (orageo:withinDistance (? geom, "POINT(-122.4192 37.7793)" ^ ^ <http://xmlns.oracle.com/rdf/geo/WKTLiteral>, 10000, "KM"))

}


The Oracle Jena version implements clause BIND?


Thanks in advance,


Craig

Craig,

The Jena adapter supports the BIND clause. Oracle 11g database, however, does not support BIND directly so adapter Jena ends up using ARQ to manage the CONNECTION. Unfortunately, the functions of orageo are not recognized. (Operations of independent channels, calculations, etc. are taken care of well.)

The filter works because the database supports, and we push the expression up to the database.

BTW, sage syntax, you can use something like:

BIND (orageo:distance (? geom1,? geom2, 'KM') as? dist2)

Hope it clarifies,

Zhe Wu

Tags: Database

Similar Questions

  • App rejected by apple 11.13.  Referenced the 'Create an account' link in the login box

    We have a right multi-folio (Enterprise level) application allows us to authenticate to our customers of current subscribers.  In various parts of the app we link to the site where a user can create an account and authenticate this account with a subscriber number.  The link goes to our site.  We are not trying to sell subscriptions through this process.

    The message from apple was the following:

    "The displayed pages have links to external pages for creating an account. The Connect dialog box also has a link to create an account that connects to the same Web page. It is illegal to 11,13 "

    It is the creation of account mentioned by Apple URL:

    http://www.ainonline.com/dpsregistrationform_isSubscriber

    Nothing has changed about this process, since we launched the app in April and now we cannot update the application.  Need to make the account creation process a function in application?  DPS has the tools to do this?  I imagine that most of the editors need a way to authenticate current submarines via some sort of authentication process and the App Builder has only an option to post a link to an external URL.

    Any guidance would be greatly appreciated - thanks.

    Dave

    Make sure your external Web site not to allow the purchase of a subscription and then appeal the rejection. The guideline says:

    "Apps that link to external mechanisms for purchases or subscriptions to use in the application, such as a 'buy' button that goes to a website to buy a digital book, must be rejected."

    Let them know that she does not allow the purchase of the subscription and is only to create an account for use in the application.

    Neil

  • I asked question 1 on 17 August and confirmed my a/c link in email to post the question. where can I find answers?

    I asked my 1st ever question about Firefox for Mobile re: bookmarks on 17 August and confirmed my account link in the email to post my question - where can I find the answer now? "Where can I find the answer" has been asked before and the answer chosen is:

     * At the top of the support site, mouse over your user name and choose View Profile from the menu
     * From the main questions page, find My Contributions in the filters list
    

    This does not work for me. It is not a page of questions only a question. I used advanced search to find my Contribution and could find nothing. It is too painful to browse all relevant response messages, I just want to stop smoking.

    How can I delete my original question anyway? No rude answer or I'll report it as abuse, thanks in advance.

    These are two different directions.

    The first can be used on the pages of the forum if you have connected and your user name displayed (instead of connection) with a drop-down list that appears if you click your name.

    The second direction works for pages to index forum having my Contributions link in the drop-down list sort and filter (second column: Show > my Contributions).

    I see only this question and answer that you have posted in another thread. There is no second question asked on 17 August.

  • When I try to use the Windows Update link for my XP computer I get a message indicating that the location where the Windows Update stores data has changed and it needs to be repaired. How can I solve this problem?

    When I try to use the Windows Update link for my XP computer and after using Windows Mr. Fix - It, I get a message indicating that the location where the Windows Update stores data has changed and must be repaired. How can I solve this problem?

    I'm not that computer literate and do not understand what needs to be fixed.

    This problem just started a few weeks when I noticed that I had any recent download automatic update that I regularly get. So I tried to do it manually through access via my control panel.

    I use ESET Antivirus Node32 software.

    Hello

    1. What is the error message or an exact error code?

    2 have you made changes on the computer before this problem?

    3. you try to check the updates?

    I would suggest trying the following methods and check if it helps.

    Method 1:

    Reset Windows Update components and then try to download the updates.

    How to reset the Windows Update components?

    http://support.Microsoft.com/kb/971058

    Warning: Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base: http://support.microsoft.com/kb/322756

     

    Method 2:

    File system scan tool checker and then try to press Ctrl + Alt + Delete and check.

    Description of Windows XP and Windows Server 2003 System File Checker (Sfc.exe):

    http://support.Microsoft.com/kb/310747

    Please respond with more information so that we could help you more.

  • Where can I find a linke for the the help file for process Explorer 14.01?

    Where can I find a linke for the the help file for process Explorer 14.01?  Thank you.

    If you have problems to access using Process Explorer, it's probably because you do not it unlock after the download.

    The best way to do this is to go to the folder where the zip file downloaded, right click the zip file and select Properties. Then click on the button unlock and apply them. Go to the excerpt from Process Explorer.

    For more details, see http://www.msteched.com/2010/NorthAmerica/WCL314

  • Where can I find the file "Actions.pdf", which came with Photoshop 6.0? The link in the forums brings up a page of Acrobat.

    I printed the file 'Actions.pdf' at the time where I was using version 6.0, the latest version it comes with, but printing is starting to wear.

    I searched high and low for this file with no luck. There is a reference to it in one of the forums, but the link opens a page linked to Acrobat, not Photoshop.

    I'm a registered user of Photoshop since version 4.0, I would have thought that Adobe would make the file available to those who had it. It is that recently I realized that it was not included with all versions since 6.0.

    It's on the way

    Gene

  • where can I find a link to the Acrobat DC patch released July 14, 2015?

    I've updated my DC Acrobat (Windows) this morning with the new patch released July 14...

    However, the patch downloaded and installed automatically.

    Y at - it link to this patch on Adobe where I can download and save on my HD?

    Sometime this fall, I plan to upgrade my computer to Windows 7 to 10 Windows using a pure install, rather than the update that Microsoft pushing it to us.

    The original version of Acrobat generated DC event ID 80 errors after installation, I would avoid this problem when I have to re - install DC after upgrading to Windows 10.

    I would appreciate if someone can provide a direct link with the recent DC patch so I can save it on my hard drive.

    Thank you

    Hi btbow,

    You can download the update for DC Acrobat using the following link: http://www.adobe.com/support/downloads/product.jsp?product=1&platform=Windows

    Kind regards

    Rahul

  • where can I load adobe element 9. If I use the link of the item it will be me talke version 12 and I don't know if my series works for version?

    where can I load adobe element 9. If I use the link of the item it will be me talke version 12 and I don't know if my series works for version?

    Certainly, your Elements 9 serial number will not work to 12 items.

    You can re-download Adobe Elements 9

    Download Photoshop Elements products | 9, 8, 7

  • Where are the tabs to links in the toolbar?

    Cannot place fave links in the toolbar as before.

    Make sure you always have the "Bookmarks Toolbar items" on the personal bar

    If the menu bar is hidden, then press F10, or press and hold the ALT key, which should make the "menu bar" appear

    Ensure that all toolbars like the toolbar 'Navigation' and the 'personal bar' are visible: "view > toolbars".

    • Check in "view > toolbars > customize" "Bookmarks Toolbar items" are on the personal bar
    • If the "Bookmarks Toolbar items" is not on the bookmarks toolbar, then get it back from the window Customize on the bookmarks toolbar
    • If you do not see the "Bookmarks Toolbar items" or other items which do not appear in the palette of the toolbar or a toolbar, then click on the button "Restore Default Set"
  • How do you reset security issues where there is a link at the bottom of the page?

    When I was younger, I did my security questions and do not remember them. I tried to reset, but it isn't a link at the bottom of the page click on reset. Any help is welcome!

    Hi Kayla_8

    This link appears only if you have a rescue address put in place on the e-mail account.

    If you don't have an e-mail address (different from the secondary e-mail address) help set up on the account, you will need to contact iTunes Support Online: http://apple.com/emea/support/itunes/contact.html (select security account as your help topic) or by phone: Numbers of Support from Apple

  • How can I control where a link displays the content

    A first version of my site is http://www.awd4u.com/FPPA/. I still manage my footer, among other things.

    The gray block (with hyperlinks link through the Link) and the white block (defined as an HTML article) are in a div with class = "row". The gray block has class = 'col-md-2', and the white block has class = "co-md-9. When the user clicks on a link, I want the file to load into the white block. This used to be easy with frames, but frames are old school now. The target property only points to _blank, _parent, _self, _top, or new. So I have difficulties to find a way to do this.

    Your example site has nothing mysterious. Each link is directed to a separate URL (look at the address bar).

    Learn how to use inclusions side server for your elements header, footer and of navigation at the site level. This will be the shortest work for you long term.  I wrote a quick tutorial on Server-Side Includes below. Let me know if you have any questions.

    ALT-Web Design & Publishing: Inclusions with PHP server-side

    Nancy O.

  • Where is the link to the discussion?

    I have this page bookmarked for a forum (Flash CC):

    http://forums.Adobe.com/community/Flash/flash_general

    How to a list of all the discussions in the forum? I can't see a link on the page.

    By trial and error, I found that it is the URL for discussions:

    http://forums.Adobe.com/community/Flash/flash_actionscript3?view=discussions

    Bottom right widget 'A trend of issues', click on the blue "more >"link. "

  • Links in bulk style where the text style has changed before

    I do a custom RTE and have a method that inserts a hype link in the text box.  I found that it works very well, except when I modified the text somehow (IE font size, wieght etc.) then the style of link does not appear.  The link is there, it is clickable when you hold the CTRL key.  Is it a bug or someone at - it a way to solve this?  Here is a simple code that I get the same wierdness more.  I just applied the changes of fonts in the text box in the complete creation, type some text, highlight and click on the button apply a google.com link and no blue underline style occurs:

    <? XML version = "1.0" encoding = "utf-8"? >
    " < = xmlns:fx s:Application ' http://ns.Adobe.com/MXML/2009 "
    xmlns:s = "library://ns.adobe.com/flex/spark".
    xmlns:MX = "library://ns.adobe.com/flex/mx" minWidth = "955" = "600" xmlns:local = minHeight "" * "creationComplete =" onCreationComplete () ">"
    < fx:Script >
    <! [CDATA]
    import flash.text.engine.FontWeight;

    Import flashx.textLayout.edit.IEditManager;
    Import flashx.textLayout.formats.TextLayoutFormat;

    Import mx.events.FlexEvent;

    protected function onCreationComplete (): void
    {
    var tf:TextLayoutFormat = blah2.getFormatOfRange (null, 0, 0);
    tf.fontSize = 16;
    tf.fontWeight = FontWeight.BOLD;
    blah2.setFormatOfRange (TF, 0, 0);
    }

    protected function button4_clickHandler(event:MouseEvent):void
    {
    var editManager:IEditManager = blah2.textFlow.interactionManager as IEditManager;
    editManager.applyLink ("www.google.com");
    }

    []] >
    < / fx:Script >

    < fx:Declarations >
    <! - Place non-visual elements (e.g., services, items of value) here - >
    < / fx:Declarations >


    < s:TextArea id = "blah2" / >

    < s:Button = "164" x = "249" label = "Button" click = "button4_clickHandler (event)" / >
    < / s:Application >

    I wonder if the links formats are getting replaced when you make the call setFormatOfRange? I'll ask the Flex team about it.

    In the meantime, I rewrote your creationComplete Manager in TLF calls, and it seems to work. Try this:

    protected function onCreationComplete (): void

    {

    var tf:TextLayoutFormat = new TextLayoutFormat;

    tf.fontSize = 16;

    tf.fontWeight = FontWeight.BOLD;

    var textFlow:TextFlow = TextFlow (blah2.content);

    var editManager:IEditManager = IEditManager (textFlow.interactionManager);

    editManager.selectRange (0, textFlow.textLength);

    editManager.applyFormat (tf, null, null);

    textFlow.flowComposer.updateAllControllers ();

    }

    -robin
  • does anyone know where the link to the CF mx dowload verison is once again.  I just wanted to test my PC C drive thank you

    does anyone know when the web link for the CF mx dowload version is new. I just wanted to test my PC C drive thank you

    Try here Center of Support of ColdFusion

    Phil

  • Links in the Facebook crash and Safari pages keep reloading / crashing even with iOS 9.3.2

    Ive got ios 9.3.2 and links in Facebook keep crashing again. And every time I try to navigate in safari or chrome pages keep reloading. Sometimes only couple of times, but other times it charging until the phone freezes and puts an end to all applications and sent it to me to the home screen. Shurting, sometimes even to the bottom of the Web page. There are some days where was at its worst, but it stopped after the phone automatically just reset (like holding home and power at the same time button). But it doesn't work when I do it myself. At the moment it is slightly backward. Especially with the Facebook links crash. But my safari page was actually not to recharge for some reason any while I was typing this question on my iPhone. It is very annoying because I can't navigate on my phone. Actually, it gets to the point where any other webpage just keep reloading until phone crashes.

    I'm using an iPhone 6 +.

    I do not know how to solve and I thaught it was a 9.3 iOS problem. I use 9.3.2

    It was not a problem in the 9.3, there is a problem with your phone. That's why 9.3.2 has not set. As a first step, remove the Facebook application, reboot your phone in now the HOME and SLEEP buttons simultaneously until the Apple logo appears, and reinstall the FaceBook application by downloading it with the App Store application on the phone.

    For Safari, open Safari, tap the HOME button, wait a second, double - press the HOME button and sliding upward on the Safari screen image. Then go to settings/Safari and tap clear history and data from the Web site. Reboot again.

    If the problem persists after these steps, restore iOS through iTunes and set the phone like New. Do not restore the backup, because the problem is most likely in the data to be backed up.

Maybe you are looking for

  • I've updated to fire fox and now can not connected to a webstite but I can't in other browsers...

    I've updated to fire fox and can not now connected to: https://portal.recampus.com/re/hogue-school/portal/login but I can't in other browsers...I make sure to check that Internet security software is up-to-date.Remove Firefox from your program of tru

  • I can't open a new tab in Firefox. Help please.

    the little tab appears on the right (with the sign + in the Center), but I click it and nothing happens. I also try going to the tab file/new, and still nothing. A new tab opens when prompted while looking at stuff and I want to open a new tab... inf

  • in the Tree control check box symbol

    Hello I built a code to use the check box symbol based on the tree and pasted to get the item check box selected. In fact, my requirement is to use the tree with the checkbox and make multiple selection and the list of the selected item. I've complet

  • Find the area between the axe of waveform and time

    Hello. I have acquired a signal to 1ms rate. I recorded in a .lvm file, and now I want to calculate the area between the axe of waveform and time. So, it's a classic integral. So, I create a .vi separated with a module for reading measurement, but I

  • 0601

    Help! I have a laptop Pavilion DV6 which starts is no longer. There are alert notice of primal (internal) battery 601 battery that needs to be replaced. If you press ENTER to start nothing happens. I also tried the beginning upward after removing the