Syntax of RDFS predicates and objects in triples?

Hi,
I am trying to create and load triples into the staging table from a flat file. My triples are like:
<myProject:Observation>     rdfs:type     rdfs:Class
<myProject:MouseWeight>     rdfs:subClassOf     <myProject:Observation>
Will Oracle recognize this syntax of RDFS predicates and objects [and hence use them in a right way for inferencing, etc..]? Or should I use URL-based syntax, e.g. <http://www.w3.org/2000/01/rdf-schema#Class> instead of rdfs:Class?
Thanks for your answers,
Dmitry.

1) Here is an updated script for bulk load for 11.2.0.3:
-- Assuming semantic network has been created, user rdfuser has been created, RDF model family has been created
-- load from flat file to staging table
create table stable (
RDF$STC_sub varchar2(4000) not null,
RDF$STC_pred varchar2(4000) not null,
RDF$STC_obj varchar2(4000) not null
host sqlldr userid=rdfuser/rdfuser control=bulkload.ctl data=family.nt direct=true discardmax=0 bad=d0.bad discard=d0.rej log=d0.log errors=1000000
-- MDSYS needs some privileges for doing bulk-load
grant INSERT on family_rdf_data to MDSYS;
grant SELECT on stable to MDSYS;
-- invoke bulk-load from staging table
exec sem_apis.bulk_load_from_staging_table('FAMILY','rdfuser','stable', flags => ' PARSE ');
2) Here is sample RDF data (in file family.nt):
<http://x.org/family/John> <http://x.org/family/fatherOf> <http://x.org/family/Suzie> .
<http://x.org/family/John> <http://x.org/family/fatherOf> <http://x.org/family/Matt> .
<http://x.org/family/Janice> <http://x.org/family/motherOf> <http://x.org/family/Suzie> .
<http://x.org/family/Janice> <http://x.org/family/motherOf> <http://x.org/family/Matt> .
<http://x.org/family/Sammy> <http://x.org/family/fatherOf> <http://x.org/family/Cathy> .
<http://x.org/family/Sammy> <http://x.org/family/fatherOf> <http://x.org/family/Jack> .
<http://x.org/family/Suzie> <http://x.org/family/motherOf> <http://x.org/family/Cathy> .
<http://x.org/family/Suzie> <http://x.org/family/motherOf> <http://x.org/family/Jack> .
<http://x.org/family/Matt> <http://x.org/family/fatherOf> <http://x.org/family/Tom> .
<http://x.org/family/Matt> <http://x.org/family/fatherOf> <http://x.org/family/Cindy> .
<http://x.org/family/Martha> <http://x.org/family/motherOf> <http://x.org/family/Tom> .
<http://x.org/family/Martha> <http://x.org/family/motherOf> <http://x.org/family/Cindy> .
<http://x.org/family/Cathy> <http://x.org/family/sisterOf> <http://x.org/family/Jack> .
<http://x.org/family/Jack> rdf:type <http://x.org/family/Male> .
<http://x.org/family/Tom> rdf:type <http://x.org/family/Male> .
<http://x.org/family/Cindy> rdf:type <http://x.org/family/Female> .
<http://x.org/family/Person> rdf:type rdfs:Class .
<http://x.org/family/Male> rdfs:subClassOf <http://x.org/family/Person> .
<http://x.org/family/Female> rdfs:subClassOf <http://x.org/family/Person> .
<http://x.org/family/siblingOf> rdf:type rdf:Property .
<http://x.org/family/parentOf> rdf:type rdf:Property .
<http://x.org/family/brotherOf> rdfs:subPropertyOf <http://x.org/family/siblingOf> .
<http://x.org/family/sisterOf> rdfs:subPropertyOf <http://x.org/family/siblingOf> .
<http://x.org/family/brotherOf> rdfs:domain <http://x.org/family/Male> .
<http://x.org/family/sisterOf> rdfs:domain <http://x.org/family/Female> .
<http://x.org/family/fatherOf> rdfs:subPropertyOf <http://x.org/family/parentOf> .
<http://x.org/family/motherOf> rdfs:subPropertyOf <http://x.org/family/parentOf> .
<http://x.org/family/fatherOf> rdfs:domain <http://x.org/family/Male> .
<http://x.org/family/motherOf> rdfs:domain <http://x.org/family/Female> .
<http://x.org/family/Cathy> <http://x.org/family/height> "5.8"^^xsd:decimal .
<http://x.org/family/Jack> <http://x.org/family/height> "6"^^xsd:integer .
<http://x.org/family/Tom> <http://x.org/family/height> "05.75"^^xsd:decimal .
<http://x.org/family/Cindy> <http://x.org/family/height> "06.00"^^xsd:decimal .

Similar Messages

  • Requirement to check the syntax error of Customize SAP Objects in existing landscape.

    Hi All,
    I have two requirements which are a s follows :
    1 )    Check the syntax error of customize SAP Objects in existing landscape except using the Tools which are already given by SAP( Example : Code           Inspector , Extended Syntax Check etc.). I have to create a program to fulfill this requirement.
    2 )    In case of SAP Upgrade is it possible to know the syntax error in advance that the existing source code will not work in the upgrade version?
      Please help me out to solve my issues. Thanks in advance.

    Dear Abhishek,
    For the code inspector, the syntax check and the extended syntax check, you can define a set of objects to be teste thru SCI:
    Go to SCI
    In the block 'Object Set', you can create a set. For ths, you have to give it a name, select with the icon left of the textbox if this is a global (for all users) or a local set and click the create Icon.
    in the next field, you can define which objects ... are part of the object set.
    When using SCII to execute the code inspector, you can specify this set instead of a transport(s) or programming objects.
    To run only the syntax check and or the extend syntax check, you can specify a check variant in SCI (third screen block) which contains only those tests or you can in SCII uncheck all tests except those 2.
    Regards,
    Hans

  • Function Module for syntax check on the repository objects

    Hi Experts,
       Can anyone help me in finding out the function module used to do syntax check on Repository objects(PRograms/Smartforms/FUnction Modules...etc.,)
    Dr. Arif Shaik

    Hi,
    Can you please check following function modules? But I am not sure that you can get it all in one.
    EDITOR_SYNTAX_CHECK  (For any report)
    SSF_PREPARE_SYNTAX_CHECK (For any smarrt form)
    RS_SYNTAX_CHECK ( ABAP Syntax Check with Dialog and Navigation)
    CHECK_FORM_ITF_SYNTAX
    RS_DISPLAY_SYNTAX_DIAGRAM
    RS_CUA_INTERNAL_SYNTAX_CHECK
    SEO_CLASS_CHECK_INCLUDE_SYNTAX
    SEO_CLIF_GET_SYNTAX_INFO
    C195_TEST_SYNTAX_CHECK
    C1F0_PHRID_SYNTAX_CHECK
    Pls let me know if anything is unclear.
    Regards,
    Lokesh.
    Edited by: Lokesh Tarey on Apr 8, 2010 10:59 AM

  • Difference between reference variable and object ?

    I am getting confused with reference variable and object ?
    1. int a; // is a variable
    2. Car c = new Car(); // is a object of car type
    Suggest me what are the difference between the two.....

    jverd wrote:
    Shelby wrote:
    Something about an interned string literal?_
    I remember something from class about the way Java treats strings that contain the same data. yawmark
    posted a link for me that cleared up my confusion. thanks yawmark.
    >>
    Can you actually point back to the original reference?Not clear what you're asking here. Nothing points to references. References point to objects.
    Goodness, correct wording is as important as getting the syntax right, isn't it? ;-} What I was trying to ask is if it is possible to point back to the same String once you change the pointer on the variable?
    And you answered my question succintly with the rest of your post. thanks jverd
    >
    String str = "abc";
    str = null;'At this point, we've lost the reference to the original String object. However, at runtime, the VM will still be maintaining it in the constant pool. For any non-constant-pooled object, as we're writing our code, we'd have no way to refer to that object again. In this case, we are able to refer to the same object later in our code by simply using the same string literal. "abc" elsewhere in our code will cause the VM to give us a reference to that same pooled String. Same goes for Integer, etc. in the range -128..127.
    However, it's not good design to rely on this. If your design requires you to later point to "the same object" (as opposed to any object of a compatible type and holding the same contents), then you should explicitly maintain a reference to it. In the case of Strings, you really shouldn't care whether it's the same object or not. All you care about is the character sequence that defines the String's state.

  • Communication between javascript and Objective-c in iOS.

    We wanted to have a communication between javascript and objective c code. We have already tried the below approach.
    To load fake URLs in JS and append a string which will be used as parameter to the Objective-C code and parse that URL in this delegate method:
    -(BOOL)webView(UIWebView *)webView shouldStartLoadWithRequest(NSURLRequest *)request navigationType(UIWebViewNavigationType)navigationType
    Then send the return value by calling the native method stringByEvaluatingJavaScriptFromString again with parameter callID.
    But we wanted to access Objective class object in Javascript code so that we can call it's methods from javascript code using this object.Android supports this behaviour using addJavaScriptInterface method in webview. Is it possible to have the similar approach in IOS? If not what is the best approach possible to acheive this? If we could achieve similar behaviour then we don't need to change the Jacascript code and will be reused. Please suggest the best possible solution.
    Regards,
    Karthik M.

    https://developer.apple.com/library/mac/documentation/AppleApplications/Conceptu al/SafariJSProgTopics/Tasks/ObjCFromJavaScript.html

  • System and Object privileges question

    hello everyone.
    I was really making it a priority to really understand both system and object privileges for users. I have setup a couple of 'sandboxes' at home and have done lots of testing. So far, it has gone very well in helping me understand all the security involved with Oralce (which, IMHO, is flat out awesome!).
    Anyway, a couple of quick questions.
    As a normal user, what view can I use to see what permissions I have in general? what about permissions on other schemas?
    I know I can do a:
    select * from session_privs
    which lists my session privileges.
    What other views (are they views/data dictionary?) that I can use to see what I have? Since this is a normal user, they don't have access to any of the DBA_ views.
    I'll start here for now, but being able to see everything this user has, would be fantastic.
    Cheers,
    TCG

    Sorry. should have elaborated more.
    In SQLPLUS, (logged in while logged into my Linux OS), I am working to try and get sqlplus to display the results of my query so it is easy to read. Right now, it just displays using the first 1/4 or 1/3 of the monitor screen to the left. Make sense? So it does not stretch the results out to utilize the full screen. it is hard to break down and read the results because they are "stacked" on top of each other.
    Would be nice if I could adjust sqlplus so the results are easier to read.
    HTH.
    Jason

  • How to remove file path location listings from photos and objects in Acrobat Pro 9.0 PDF?

    After converting a windows-based Powerpoint 2007 presentation to an Acrobat Pro 9.0 PDF, the file path location of all photos and objects are shown in a dialogue box when the cursor is moved over the image as seen in this screenshot below. How can I stop this from happening and remove this feature on my pdf documents? 

    I saw that referenced on a forum, but it does not seem to address the issue I am having.
    As per Adobe Acrobat X Standard * What’s new, the equivalent to the "Tools > Protection > Remove Hidden Information" utility found in Acrobat X Standard is the same as the "Document > Examine Document" feature in Acrobat Pro 9.0. Those tools seem to cover meta data, book marks, hidden text, and deleted or cropped content, but not the file path listings that appear on images and objects converted from Powerpoint presentations and other MS Office programs.
    I have reviewed the settings used while creating a pdf, and have also tried the “Advanced > Preflight tool”, but could not find anything to apply to the issue at hand.
    Thus, this issue has not been resolved, but seems like it should be an easy fix that anyone who publishes pdf documents would want to use to publish clean, professional documents without anyone seeing the file path location of every object and image shown in the document on their hard drive.

  • Reset Text Wrap and Object Placement defaults?

    Using Pages 5.5.2 (w Yosemite).
    Wondering if there's any way to set a default preference for the Text Wrap and Object Placement parameters in the Format > Arrange tab? 
    For example, more often than not I need to have Text Wrap set to "None", rather than "Automatic".  I was at least hoping that once I'd set a particular object to "None", any new objects I created or which were dragged into that same document would inherit that same Text Wrap setting (in much the same way that any new drop shadow setting becomes the new default when applying the drop shadow effect to subsequent selections). But even THAT doesn't seem to be the case with the Text Wrap & Object Placement options -- much less being able to reset a new global preference.
    Any suggestions (which still involve using Pages 5.5.2) appreciated.
    Thanks,
    John B

    just discovered a related topic: when importing images in Pages, how do I set the default object placement to "stay on page" and "no text wrap"?
    But that thread ends up going in a slightly different direction, since having to create placeholder shapes, and then duplicating (+ individually repositioning) same, for almost every time I dragged an image into a Pages doc would actually be MORE work than the current annoyance of having to reset the Text Wrap setting for most new objects.
    I just want a way to set a global preference for that adjustment -- or at least a preference to have all new objects start off with the same Text Wrap (and Object Placement) settings as the last ones used.
    Possibility?  Or Feature Request?

  • XML attributes and object types

    I want to create an XML Document of the following form
    <family>
    <parent attr1="val1">
    <child attr2="val2" attr3="val3"/>
    </parent>
    </family>
    Using object table and object type (for the child element), I am able to produce the following XML Document (with a "select * from family" query)
    <family> <!-- rowset -->
    <parent> <!-- row -->
    <attr1>val1</attr1>
    <child>
    <attr2>val2</attr2>
    <attr3>val3</attr3>
    </child>
    </parent>
    </family>
    The question is: how am I going to query these data so that the "attr" elements are mapped to attributes (using XSU only, without XSLT)?
    I have already tried the following:
    1. Using
    SELECT attr1 as "@attr1",
    f.child.attr2 "@attr2",
    f.child.attr3 "@attr3"
    FROM family f
    all the attributes are obviously appended to the "parent" element.
    2. Using nested table for "child" and the following query
    SELECT attr1 as "@attr1",
    CURSOR (
    SELECT n.child.attr2 as "@attr2", n.child.attr3 as "@attr3"
    FROM TABLE(f.child n)
    ) AS "child"
    FROM family f
    I am getting the following document
    <family>
    <parent attr1="val1">
    <child>
    <child_ROW attr2="val2" attr3="val3"/>
    </child>
    </parent>
    </family>
    Is there a smart SQL query to produce the desired document? What data types
    is it recommended to use to define my db schema (object types, nested tables...)?
    Thank you in advance
    null

    Finally, I got the desired XML format output from relational tablse using schema based XMLType views.
    Wherein I created Object Types from relational table, generated the schema for the Object type, registered the schema and finally created XMLType Views for populating the XML data from Relational Tables.
    I guess, you all might aware of my problem, where I got struck. Instead of printing the data in XML format I am successful in generating the XML format data Using the Query Select from BLABLA_Type_view* . I am able to print the number of rows, that I require which is in the fallowing format.
    Column Name
    1. SYS.XMLTYPE ----- As a row
    The view I am querying for is printing the data in a string format, where in I got to do the fallowing query
    SELECT SYS.XMLTYPE.getStringVal(OBJECT_VALUE) FROM BLABLA_Type_view. Which ultimately gave me the required data in XML format with tags.
    Thanks for every one who tried to give a try to solve, especially "mdrake"

  • Incorrect syntax near the keyword 'AND'.

    Hi Friends,
    I have a requirement from SAP BI to SQL database.
    When I am triggering data from SAP BI, it is successfully sent to XI.
    In XI, it is also in success.
    But when I check in Message monitoring, I faced a error.
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'ZSaleFromBI' (structure 'Data'): com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near the keyword 'AND'.
    The data is not updating in SQL Database also.
    Kindly suggest the same.
    Regards,
    Narendra Goyal

    Hi,
    After debugging lot, I found a payload difference.
    In PI 7.0 Inbound message from BI is:
      <?xml version="1.0" encoding="utf-8" ?>
    - <n0:MT_OTBData_BI xmlns:n0="http://grmap.com/xi/grmap/OTB_Data_OB" xmlns:prx="urn:sap.com:proxy:BIJ:/1SAI/TAS05A432A314B70F5CEB43:700:2008/01/11">
    + <DataRow>
    + <DataRow>
    + <DataRow>
      </n0:MT_OTBData_BI>
    In XI 3.0 Inbound message from BI is:
      <?xml version="1.0" encoding="utf-8" ?>
    - <nr1:MT_OTBData_BI xmlns:nr1="http://grmap.com/xi/grmap/OTB_Data_OB">
    + <DataRow>
    + <DataRow>
    + <DataRow>
      </nr1:MT_OTBData_BI>
    Kindly provide suggestion to resolve this issue.
    Regards,
    Narendra Goyal

  • Time_building_block_id and object version number

    Hello,
    could someone help me out with an explanation how the time_building_block_id and object version number to be interpreted?
    Are these independent? What actions create new ID and new ovn?
    My first idea was that one ID can have different instances in the table with different object version numbers. However I found cases belonging to the same parent buildingblock where both the id and ovn are different.
    So based on this only one of the columns could be primary.
    However for the joins both are used typically at the same time, suggesting that the two together constitutes a primary key.
    Are the DETAIL level records belonding to the same DAY level record to be treated as co-existing entries and their measure to be summarized? Or only the latest (bigger ovn?) to be considered, so it is an updated version of the record with the previous ovn?
    thanks!

    The version number in the TC Building blocks is used to identify changes to timecard building blocks. It is not the same as an object version number on a record in a table.
    OTL keeps an audit history of all changes to the timecard, at whatever level they occur. It uses this in retropay processes to identify the 'true' hours to use.
    TC Building blocks have a 'scope', for example there are building blocks at these levels:
    Timecard
    Period / Application
    Day
    Detail
    If you entered 8 hours on a new timecard for Monday 07/09/09 it would create a building block record for that date and call it version 1.
    If you later make a change to that DAY, OTL will create a new record with version 2. Say this one shows 7 hours.
    OTL can then interpret this as -8 + 7 = -1 and make the appropriate adjustment.
    Hope that helps explain it!
    Regards
    Tim

  • Scope and Objectives of making java swing scientific calculator

    I am going to write code for java swing scientific calculator..... can any body help me to write scope and objectives of this project.... please please :-(

    If this is for school work, then defining the scope is part of the problem. The only advice I will give you is that you only need to implement what the assignment specifies. It is probably intentionally vague so you can bite off way too much and not finish -- failure should teach you something too.
    I had just such an assignment in my software engineering class in college -- create a cross compiler from X to Y where X and Y where known instruction sets. That was the entire assignment -- plus the instruction sets for X and Y. My team looked at the allotted time and resources availabe and decided to do a minimal implementation.
    We where the only team to complete the assignment and all recieved A's because we accurately implemented the required solution and were able to evaluate the real problem--resource allotment--accurately.
    Each other team tried to add "extras" that would "guarantee" them an A grade. In actuallity it was just a lot more work than they could do though and it hurt them in the long run--No matter how good the work was to the point they had at the end of the semester, each student in the other teams only recieved a B or less grade in the class due to failure on that project. Resource allocation and planning--only you can do that for your team/project.

  • Problem with editing the size of artboard and objects in illustrator!

    I was using a custom size of artboard in illustrator, but I now I want to change it to A4 size for printing. However, when I change it to a A4 size artboard, the size of objects on that artboard remain unchange. As a result these objects do not fit the new size of artboard. Are there any way that I can change both the size of artboard and objects at once? Thank you!

    Probably not.  Don't suppose you have a proportion scale handy?  Alright, don't worry about it.  Give me the size of your original ( in inches ) and the size of A4 ( in inches ), I can give you the scale percentage ( you input into the scale dialog box ).  Whatever you do, keep your original file and do the enlargement on a "copy" of the original.  You already have the new artboard, not it is just a simple matter of enlarging the artwork to fit the new size.

  • Type Messages and Objects turned from white to black in PDF

    When I exported my Keynote presentation to a PDF the Type Messages and Objects turned from white to black. The display in ”Preview” is ok but in Acrobat PDF Viewer it looks black instead of white. Only happens on some slides. I could not find a reason why this happened. Seemed kind of random to me when it happened. But the error was reproducable unless I rebuild it with new silides.

    Can you get the exact wording for that error? Is it can't mount iPod?
    Also, make sure iTunes is up to date...
    iTunes
    Finally, make sure your iPod's battery is charged up.
    btabz

  • Issue with html5 panoramas and objects

    I have a problem in visualizing panoramas and objects on my website (www.dee-lay.com); all other browsers do not have this flickering problem ..is something about my mistake?

    A good place to ask advice about web development is at the MozillaZine "Web Development/Standards Evangelism" forum.
    *http://forums.mozillazine.org/viewforum.php?f=25
    The helpers at that forum are more knowledgeable about web development issues.<br>
    You need to register at the MozillaZine forum site in order to post at that forum.

Maybe you are looking for

  • After upgrade Freetalk no longer supported

    I've had a Freetalk 1200 for years and it's worked great.  After the last Skype upgrade it quit working.  I contacted Skype that they tell me it is no longer supported.  Any ideas?

  • How to set a password to prevent iBooks purchases ?

    Hello! I would like iBooks to ask me for a password before I purchase a book (just like Apps Store does before I buy an app, or like iTunes does before I buy a song). Can anyone tell me how to set it up? Thanks for your help

  • How does one remove inserted HTML?

    I inserted HTML on a page and it must now be removed. I know it is there in the HTML code, but it does not show when I "Insert HTML" from the Object dropdown.How can I remove the code?

  • Can I still get my photos. I don't know what happened.

    Can I still get my photos. I don't know hat happened.

  • Where do I find redeye in Photoshop CS6

    I have Photoshop CS 6 for photographers by Martin Evening.    On Page 48, he shows a list of tools. Move tool (V)    I have Crop tool (C)     I have Perspective Crop Tool (C)  I do not have Clone Stamp (S) I have Spot Healing brush (J)  I have Healin