Sparql endpoint does not recognize named graph

Hi, I created a sem model A, and later added quads into it. while when I searched the named graph using sem_match from sql plus, it worked well, but it did not work using neither java code nor Joseki end point. For example, I simply count the number of triples, the number using sem_match is greater than that using the code. so I guess the code does not recognize the new added quads. Any ideas?
here are the java code:
Oracle oracle = new Oracle(szJdbcURL, szUser, szPasswd);
DataSource ds = DatasetFactory.create();
ModelOracleSem model = ModelOracleSem.createOracleSemModel(oracle, szModelName);
ds.setDefaultModel(model);
String queryString =
" select (count(*) as ?count) from named <http://****> " +
" where {" +
" graph ?g {?s ?p ?o } " +
Query query = QueryFactory.create(queryString) ;
QueryExecution qexec = QueryExecutionFactory.create(query, ds) ;
ResultSet results = qexec.execSelect() ;
ResultSetFormatter.out(System.out, results, query);
So does Joseki end point, do I need to add the named graph into joseki-config.ttl?
Thanks.

Hi,
To deal with quads, you need to use DatasetGraphOracleSem class.
You can search for Test11.java in the following document.
http://docs.oracle.com/cd/E11882_01/appdev.112/e11828/sem_jena.htm
To configure named graph support for Joseki, please take a look at oracle:allGraphs
in Section 7.2 of the above document.
Hope it helps,
Zhe Wu

Similar Messages

  • Imqobjmgr does not recognize the value of java.naming.provider.url property

    On Windows, I am running imqobjmgr 4.3
    when I run imqobjmgr -i list.properties, I am getting the following error
    Error [A3052]: imqobjmgr does not recognize the value of java.naming.provider.url property.
    Why is that?
    classpath
    C:\Sun\SDK\imq\lib\jms.jar;C:\Sun\SDK\imq\lib\imq.jar;C:\Sun\SDK\imq\lib\fsconte
    xt.jar;.
    contents of list.properties
    # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
    # Copyright 2000-2008 Sun Microsystems, Inc. All rights reserved.
    # The contents of this file are subject to the terms of either the GNU
    # General Public License Version 2 only ("GPL") or the Common Development
    # and Distribution License ("CDDL") (collectively, the "License"). You may
    # not use this file except in compliance with the License. You can obtain
    # a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html
    # or mq/legal/LICENSE.txt. See the License for the specific language
    # governing permissions and limitations under the License.
    # When distributing the software, include this License Header Notice in each
    # file and include the License file at mq/legal/LICENSE.txt. Sun designates
    # this particular file as subject to the "Classpath" exception as provided by
    # Sun in the GPL Version 2 section of the License file that accompanied this
    # code. If applicable, add the following below the License Header, with the
    # fields enclosed by brackets [] replaced by your own identifying information:
    # "Portions Copyrighted [year] [name of copyright owner]"
    # Contributor(s):
    # If you wish your version of this file to be governed by only the CDDL or
    # only the GPL Version 2, indicate your decision by adding "[Contributor]
    # elects to include this software in this distribution under the [CDDL or GPL
    # Version 2] license." If you don't indicate a single choice of license, a
    # recipient has the option to distribute your version of this file under
    # either the CDDL, the GPL Version 2 or to extend the choice of license to
    # its licensees as provided above. However, if you add GPL Version 2 code
    # and therefore, elected the GPL Version 2 license, then the option applies
    # only if the new code is made subject to such option by the copyright holder.
    # @(#)list.properties     1.11 07/02/07
    # This property file will list administered objects
    # Version of command file
    # NOTE: This is not the version of the Sun Java(tm) System Message Queue product
    version=2.0
    cmdtype=list
    # If you want to only list a particular type of administered
    # object, uncomment the following line and specify the type.
    # Acceptable values for the type property are: t, q, tf, and qf,
    # where t = topic, q = queue, tf = topic connection factory, and
    # qf = queue connection factory.
    #obj.type=
    # To use the LDAP service provider implementation from
    # Sun Microsystems, uncomment the following two property lines
    # and set the url property correctly.
    objstore.attrs.java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory
    objstore.attrs.java.naming.provider.url=ldap://localhost:389/ou=imqobjmgr,o=sun.com
    # To use the File System service provider implementation from
    # Sun Microsystems on Solaris, uncomment the following two
    # property lines and set the url property correctly.
    # *** Note that the url syntax here is platform specific. ***
    #objstore.attrs.java.naming.factory.initial=com.sun.jndi.fscontext.RefFSContextFactory
    #objstore.attrs.java.naming.provider.url=file:///home/foo/imq_admin_objects
    # To use the File System service provider implementation from
    # Sun Microsystems on Windows, uncomment the following two
    # property lines and set the url property correctly.
    # *** Note that the url syntax here is platform specific. ***
    #objstore.attrs.java.naming.factory.initial=com.sun.jndi.fscontext.RefFSContextFactory
    #objstore.attrs.java.naming.provider.url=file:///C:/imq_admin_objects
    #objstore.attrs.java.naming.security.authentication=
    #objstore.attrs.java.naming.security.principal=
    #objstore.attrs.java.naming.security.credentials=

    I see you're using Sun Java System Message Queue. There's a forum specific to that product over at [http://forums.sun.com/forum.jspa?forumID=711&start=0|http://forums.sun.com/forum.jspa?forumID=711&start=0] . You could try asking there.
    Nigel

  • Windows Media Player does not recognize new downloaded songs

    I have a Pavilion a4310f Prod Nr:  AY014AA-ABA running Win 7 Home Premium 64 bit.
    I just discovered that Windows Media Player does not recognize songs I recently downloaded from the Wal-Mart Music Download Site.  The songs can be seen in the Music Library in a folder named "Downloads" and I can open each song and it will play when double clicked.  The problem is that I can not create a playlist containing the new songs and burn a copy of the playlist because the songs are not listed in the Media Player library no matter hot it is sorted (Artist, Album, Genre, etc).
    Any help/suggestions would be greatly appreciated.
    Mitch
    This question was solved.
    View Solution.

    You might also want to consider moving the songs to my Music or the folder you have WMP set as your Music folder. You can find/change that folder in WMP by going to File ---> Manage Libraries
    Launch WMP ----> Tools ----> Options --->Privacy and be sure that the Display information from the internet box is checked.
    HP DV9700, t9300, Nvidia 8600, 4GB, Crucial C300 128GB SSD
    HP Photosmart Premium C309G, HP Photosmart 6520
    HP Touchpad, HP Chromebook 11
    Custom i7-4770k,Z-87, 8GB, Vertex 3 SSD, Samsung EVO SSD, Corsair HX650,GTX 760
    Custom i7-4790k,Z-97, 16GB, Vertex 3 SSD, Plextor M.2 SSD, Samsung EVO SSD, Corsair HX650, GTX 660TI
    Windows 7/8 UEFI/Legacy mode, MBR/GPT

  • HT201253 iPhone 5s is not recognized by iTunes - when I connect my iPhone, iPhoto opens and the phone begins charging but iTunes does not recognize it and I cannot sync.  Any advice?

    when I connect my iPhone, iPhoto opens and the phone begins charging but iTunes does not recognize it and I cannot sync.  Any advice?

    Howdy AndieKanaras,
    It sounds like your iPhone is being recognized everywhere but in iTunes. I would use the troubleshooting for that issue in the following article, named:
    If you don't see your connected device in iTunes for Mac
    Thank you for using Apple Support Communities.
    All the very best,
    Sterling

  • Offline File | Zero KB CRW's | "Photoshop does not recognize this file"

    The first symptom was when I got the dialogue "The file named "CRW_0004.CRW" is offline or missing. I located the file using spotlight only to get a "Could not complete your request because Photoshop does not recognize this type of file." when trying to open it in photoshop. Upon closer inspection I found that the CRW file was 0KB. I searched for 0 KB CRW & CR2 files to find thousands of files. Heart sinks.
    I recently started using lightroom to import and organize all my files. Now it seems something has gone gravely wrong. Any ideas?
    Intel iMac 2core
    OSX 10.5.7
    LR 2.4
    Camera Raw 5.4

    …and just before I ran the utility I did an export and got a warning that 18 files were offline or missing and 1.file doesn't exist. But once I tried to Right Click>> show in finder and went through the relocate dialogue LR immediatly found the file. Reattempt to export files from "Photos that failed to export" folder went flalessly.

  • Aperture does not recognize that there are images to be imported on an SD card. My workaround is to copy the images from the ST card to a folder and then import the images from the folder. Aperture also imports incredibly slowly after the update to 3.4

    Aperture does not recognize that there are images to be imported on an SD card. My workaround is to copy the images from the SD card to a folder and then import the images from the folder. Aperture also imports incredibly slowly after the update to 3.4

    Check your Import settings in the Import Panel, i.e. all that might exclude the image type you want to import:
    If you did not exclude any file types, and still Aperture will not import, remove your ImageCapture preferences fro your user library:
    To remove the image capture preferences:
    If Aperture is running, quit Aperture,  and log off and on again.
    Open your user library from the Finder's Go menu: Hit Command Shift G (⌘⇧G) and then type in: ~/Library/Preferences/  then hit return.
    In the window that opens remove "com.apple.ImageCapture.plist"
    and look into the subfolder "ByHost": if there are files named com.apple.ImageCapture  something .plist  remove them too.
    then try again.
    And if that still does not help, remove the Aperture preferences as well:
    ~/Library/Preferences/aperture.plist
    Regards
    Léonie
    P.S. in MacOS Lion and later the user library ~/Library is hidden by default.
    You can reveal it also  from the Finder's "Go" menu:
    Finder > Go,   then hold down the options ⌥ key, until the Library appears in the drop-down menu, select it and open the Library folder. Then go to the "Preferences".

  • Disk Utility does not recognize internal HD

    Hello community!
    I am a computer lab assistant (all iMacs) for my work and am troubleshooting a problem as follows:
    Specs:
    Mac A:
    OS X 10.8
    2.7 GHz Intel Core i5 processor
    4 GB 1333 MHz DDR3 memory (2 slots x 2 GB in use, 2 slots empty)
    27-inch Mid-2011 iMac
    Graphics: AMD Radeon HD 6770M 512MB
    The problem is that Disk Utility does not always recognize the internal HD on mac A. In fact, only once it showed up recently and that was after a couple of restarts. Programs run very slowly and are not very responsive.
    Troubleshooting steps taken thus far:
    1. restarted mac A in internet recovery mode and ran Apple Hardware Test about 8 times (quick test 4 times and extended test 4 times). Every time it hangs indefinitely on the memory check.
    2. Installed and ran memtest in single user mode (mac A) with arguments "all 2" to run the test twice. All tests passed.
    3. Started up mac A in Target Disk Mode and booted mac B via firewire. Everything runs fine (fast), but disk utility installed on mac A's HD does not recognize any HD (neither firewire nor internal).
    4. Started up mac B in target disk mode and booted mac A via firewire. Everything runs fine (fast). Disk Utility on mac B's HD recognizes both firewire HD (of mac B) and internal HD (of mac A). Disk Utility verify and repair completed on mac A's internal HD. Everything OK.
    I'm unsure how to proceed. I assume the RAM on mac A is fine because it runs mac B's HD via firewire very fast (it handled opening all the apps on the doc simultaneously relatively well). I assume mac A's HD is fine because via firewire it shows up in disk utility and runs very fast on mac B. I just don't understand why Mac A's HD won't work well on mac A. Could it be a loose SATA connection between the HD and the logic board? Would that cause these symptoms?
    Thanks for any input.

    I ran Data Rescue 3 by Prosoft and it returned the following graph:
    In case you can't see the stats, that green spike is up to 30,000 msec in readtime for the HD. The smaller spikes before and after it are at about 2,000 - 3,000 msec. The threshold (red line) is a recommendation: persistant read times above the red line (about 1,000 msec)  could indicate a problem with the HD according to the program. I guess it's time to see about replacing the HD.
    Thanks.

  • We just added a new printer and bluetooth connection to our iMac.  Now iTunes does not recognize our iPads as devices.  Have already tried restarting everything.  Any other suggestions?

    We just added a new printer and bluetooth connection to our iMac.  Now iTunes does not recognize our iPads as devices.  Have already tried restarting everything.  Any other suggestions?

    You can try the steps recommended here: http://www.apple.com/support/ipad/assistant/itunes/

  • "Find my iPhone does not recognize New iPhone 5

    I use my AppleID to "Find my iPhone" successfully on iPhone 4, iPhone4S, iPad, iMac. All show up. New iPhone5 iOS 6.0.2 uses same AppleID in the General iCloud settings, Contacts,email,photostream,safari bookmarks,reminders,notes, are all synced fine. I can even see how much storage is available in my iCloud account on the new iPhone5.  The Problem is that "Find my iPhone" does not recognize the new iPhone 5. Yes location services is turned on. The iPhone5 can find its location in the map app, can find all other devices in "Find my iPhone" just not itself in "Find my iPhone" I tried a hard reset.
    ANY IDEAS?

    How about when the passcode is correct but not recognized?
    I was prompted to enter a password to unlock the device when I downloaded IOS 7 several months ago.
    Entered the password every single day for months, never a problem.
    Yesterday I attempted to download the most recent IOS version and I was asked for a passcode before I could do that (my phone was unlocked). Online I found out the passcode is the unlocking password. It did not work and I was unable to use the phone for several minutes after 5 attempts. I just stored the phone and when home I charged it overnight.
    This morning I unlocked the phone as usual  and used it without a problem for emails, phone calls. etc.. Now, after not having used it for a while, I am asked for the passcode to unlock it as usual, and although I am sure I entered the right code, it is not recognized. I am unable to unlock my phone, although I have done it for months.
    This is not a case of forgotten passcode! And I see it has happened to many others that use 4s and 5s iphones.
    i could attempt the iTune connection fix, but it troubles me that all solutions are presented for forgotten pascodes, and in many cases actually the passcodes are not recognized. Which means, it will keep happening unless Apple offers a solution.

  • My computer does not recognize my printer

    Dear Sir/Madam please can you help me my computer does not recognize my printer either by wireless or usb cable although I used to use it and it was good  thanks ayman 

    Running the diagnostics at http://www.hp.com/go/tools may help resolve the issue.

  • PSE 10 does not recognize my printer

    PSE does not recognize my printer.

    Running the diagnostics at http://www.hp.com/go/tools may help resolve the issue.

  • My mac air does not recognize my printer.

    My wife's mac recognizes our Epson Printer but mine will not.  I have reset the printer settings and it does not recognizes any printers.  Would love some help on this.  Thanks. 

    My wife's mac recognizes our Epson Printer but mine will not.  I have reset the printer settings and it does not recognizes any printers.  Would love some help on this.  Thanks. 

  • My iPad does not recognize my printer (HP officejet 5510 All-in-One). What can I do?

    My iPad does not recognize my printer (HP officejet 5510 All-in-One). What can I do?

    The Photosmart 5510 is AirPrint capable.  You can find that information linked below.  There may be something in the network that is preventing communication.  To use AirPrint your router needs to support Bonjour services.  Run the download below.  It will let you test Bonjour services from your Windows PC.  If this app can't see the printer either, then the router's Bonjour services are off, or it does not support Bonjour.  Let me know what the app finds.  If it can't find the printer, let me know what brand and model router you have, and I'll see if it has Bonjour services at all.
    Bonjour Print Services for Windows v2.0.2
    HP Web Connected Printers and Supported Cloud Services
    I am a printer tech for HP.

  • I got an iphone 4. I had to update my macbook pro to Lepard just to sync. I updated to lepard. Now when I try to sync itunes does not recognize my new iphone 4 as mine and wants to erase everything I have bought using the phone.

    I upgraded from Iphone 3g to iphone 4. I had to update my macbook pro to Lepard just to sync. the **** thing with the new iphone 4. I bought and updated to lepard. Now when I try to sync itunes does not recognize my new iphone 4 as mine and wants to erase everything I have bought using the phone before it will sync! It says everything on the phone now will be cleared in order to sync it with my existing info on the computer from my previous iphone. How can I just get everything from my current iphone 4 into itunes, basically add it to the info from my previous iphone 3g that is currently in my itunes?  I dont want to lose what I have on my phone currently....I paid money for half the apps for crying out loud.
    I was so frustrated by this when I first bought the phone that I just pushed it out of my mind and NEVER synced it. Please help...

    Nope - you cannot restore a backup from a newer iOS version on to a device running an older iOS version.  The reverse works, but in your case to use your backup, you must update to iOS 7.0.3 - no other option if you want to use that backup.

  • IMovie 6.0.3 does not recognize built in iSight Camera on new iMac

    New iMac, Intel, OS 10.5.4, QT 7.5.
    Built in Camera works with Photo Booth, the new iMovie 7.1.3 and iChat.
    iMovie HD 6.0.3 or 6.0.4 does not recognize the camera. Opening a new project results in a No Camera Connected error. I have tried selecting various options in the video format drop down when creating a new project. I have repaired permissions, tried it under various users, removed the imovie plist, reinstalled imovie (both 6.0.3 and 6.0.4) without success. All 10 of the new computers are exhibiting this problem.
    Any help would be appreciated.

    That is not an option that I can select on the imac's. On my iBook under 10.5.4 with iMovie HD 6.0.3 or 6.0.4 I can click on the triangle next to the camera icon and select the built in iSight camera. On the new iMacs that does not work. The built in iSight is not listed as an option.

Maybe you are looking for