Oracle property path and arq property functions

Hi,
I am using Oracle Jena Adapter. My problem is about property paths on Sparql queries. When I tried to query ”SELECT * WHERE { ?t rdf:type owl:ObjectProperty. ?t rdfs:domain ?o. ?o owl:unionOf ?union. ?union rdf:rest*/rdf:first ?member. }” from ModelOracleSem it gives me parser error.
But, if i try it using jena in-memory model, it works perfectly as below code.
hybridGraph = OracleGraphWrapperForOntModel.getInstance(graph1);
model = ModelFactory.createModelForGraph(hybridGraph);
ontModel = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM, model);
I also tried arq’s list function as “?union list:member ?member”. it does not return any results from ModelOracleSem. But when i try it from jena in-memory model, it works perfectly again.
Can anyone help me to solve this issue?
Thanks,
Regards,

Hi Mustafa,
We have generated the following code snippet to execute the SPARQL query using a ModelOracleSem model:
String szQuery = " PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> "+
             " PREFIX rdfs:  <http://www.w3.org/2000/01/rdf-schema#> " +
             " PREFIX owl:   <http://www.w3.org/2002/07/owl#> " +
            " select * where { " +
            " ?t rdf:type owl:ObjectProperty . " +
            " ?t rdfs:domain ?o . " +
            " ?o owl:unionOf ?union . " +
            " ?union rdf:rest*/rdf:first ?member ." +
    System.err.println("Create Oracle Connection");
    Oracle oracle = new Oracle(szJdbcURL, szUser, szPasswd);
    System.err.println("Create Oracle Model");
    ModelOracleSem oracleModel = ModelOracleSem.createOracleSemModel(
                                                            oracle, szModelName);
    oracleModel.removeAll();
    System.err.println("Populate model");
    String insertString = 
            " PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> "+
            " PREFIX rdfs:  <http://www.w3.org/2000/01/rdf-schema#> " +
            " PREFIX owl:   <http://www.w3.org/2002/07/owl#> " +
            " PREFIX urn:   <http://example/> " +
            " INSERT DATA "                                     +
            " { urn:objA rdf:type owl:ObjectProperty .                " +
            "   urn:objB rdf:type owl:ObjectProperty .                " +
            "   urn:objC rdf:type owl:ObjectProperty .                " +
            "   urn:objD rdf:type owl:ObjectProperty .                " +
            "   urn:objA rdfs:domain urn:dom1 .                " +
            "   urn:objB rdfs:domain urn:dom2 .                " +
            "   urn:objC rdfs:domain urn:dom3 .                " +
            "   urn:objD rdfs:domain urn:dom4 .                " +
            "   urn:dom1 owl:unionOf _:setA .                " +
            "   _:setA rdf:rest _:mem1 .                " +
            "   _:setA rdf:first urn:C1 .                " +
            "   _:mem1 rdf:first urn:C2 .                " +
            "   _:mem1 rdf:rest rdf:nil .                " +
    UpdateAction.parseExecute(insertString,  oracleModel);
    System.err.println("Population done " + oracleModel.size());
    System.err.println("Execute query over OracleModel");
    Query query = QueryFactory.create(szQuery, Syntax.syntaxARQ);
    QueryExecution qexec = QueryExecutionFactory.create(query, oracleModel);
    ResultSet results = qexec.execSelect();
    ResultSetFormatter.out(System.out, results, query);
Can you execute this code snippet and see if you get the expected result?
| t                     | o                     | union | member              |
===============================================================================
| <http://example/objA> | <http://example/dom1> | _:b0  | <http://example/C1> |
| <http://example/objA> | <http://example/dom1> | _:b0  | <http://example/C2> |
Thanks,
Gaby

Similar Messages

  • Replacing Oracle's FIRST_VALUE and LAST_VALUE analytical functions.

    Hi,
    I am using OBI 10.1.3.2.1 where, I guess, EVALUATE is not available. I would like to know alternatives, esp. to replace Oracle's FIRST_VALUE and LAST_VALUE analytical functions.
    I want to track some changes. For example, there are four methods of travel - Air, Train, Road and Sea. Would like to know traveler's first method of traveling and the last method of traveling in an year. If both of them match then a certain action is taken. If they do not match, then another action is taken.
    I tried as under.
    1. Get Sequence ID for each travel within an year per traveler as Sequence_Id.
    2. Get the Lowest Sequence ID (which should be 1) for travels within an year per traveler as Sequence_LId.
    3. Get the Highest Sequence ID (which could be 1 or greater than 1) for travels within an year per traveler as Sequence_HId.
    4. If Sequence ID = Lowest Sequence ID then display the method of travel as First Method of Travel.
    5. If Sequence ID = Highest Sequence ID then display the method of travel as Latest Method of Travel.
    6. If First Method of Travel = Latest Method of Travel then display Yes/No as Match.
    The issue is cells could be blank in First Method of Travel and Last Method of Travel unless the traveler traveled only once in an year.
    Using Oracle's FIRST_VALUE and LAST_VALUE analytical functions, I can get a result like
    Traveler | Card Issue Date | Journey Date | Method | First Method of Travel | Last Method of Travel | Match?
    ABC | 01/01/2000 | 04/04/2000 | Road | Road | Air | No
    ABC | 01/01/2000 | 15/12/2000 | Air | Road | Air | No
    XYZ | 01/01/2000 | 04/05/2000 | Train | Train | Train | Yes
    XYZ | 01/01/2000 | 04/11/2000 | Train | Train | Train | Yes
    Using OBI Answers, I am getting something like this.
    Traveler | Card Issue Date | Journey Date | Method | First Method of Travel | Last Method of Travel | Match?
    ABC | 01/01/2000 | 04/04/2000 | Road | Road | <BLANK> | No
    ABC | 01/01/2000 | 15/12/2000 | Air | <BLANK> | Air | No
    XYZ | 01/01/2000 | 04/05/2000 | Train | Train | <BLANK> | No
    XYZ | 01/01/2000 | 04/11/2000 | Train | <BLANK> | Train | No
    Above, for XYZ traveler the Match? clearly shows a wrong result (although somehow it's correct for traveler ABC).
    Would appreciate if someone can guide me how to resolve the issue.
    Many thanks,
    Manoj.
    Edited by: mandix on 27-Nov-2009 08:43
    Edited by: mandix on 27-Nov-2009 08:47

    Hi,
    Just to recap, in OBI 10.1.3.2.1, I am trying to find an alternative way to FIRST_VALUE and LAST_VALUE analytical functions used in Oracle. Somehow, I feel it's achievable. I would like to know answers to the following questions.
    1. Is there any way of referring to a cell value and displaying it in other cells for a reference value?
    For example, can I display the First Method of Travel for traveler 'ABC' and 'XYZ' for all the rows returned in the same column, respectively?
    2. I tried RMIN, RMAX functions in the RDP but it does not accept "BY" clause (for example, RMIN(Transaction_Id BY Traveler) to define Lowest Sequence Id per traveler). Am I doing something wrong here? Why can a formula with "BY" clause be defined in Answers but not the RPD? The idea is to use this in Answers. This is in relation to my first question.
    Could someone please let me know?
    I understand that this thread that I have posted is related to something that can be done outside OBI, but still would like to know.
    If anything is not clear please let me know.
    Thanks,
    Manoj.

  • Open module for managing property file and environment variables

    Looking for an open module for managing property files and environment variables (like CLASSPATH) set in a shell script. For handeling properties (preserving comments, supporting includes, appending new entries, and more) I have looked at SuperProperties from openadaptor but find certain functionality lacking. As for interfacing with common shell scripts/files containing setting for CLASSPATH, JAVA_HOME, other system/application variables another type of object editor is needed. Maybe JFIG?
    Any ideas are greatly welcomed.

    You seem wright, you hit a brick wall here with Air to find the location
    of the command console on windows...
    So in fact I never build an exe tool, but this little problem was a nice
    case to test it and I tried it.:
    I downloaded monodevelop
    -GTK# for .NET 2.12.10*
    -MonoDevelop 2.4.2*
       from http://monodevelop.com/Download
    created a console project and had an exe in 5 minutes !
    You can download the findconsole tool and the projectfiles here:
       http://greencollective.nl/temp/dump/findconsole_monoproject.zip
    findconsole.exe will reveal the path/location of cmd.exe on a windows system.
    Cheers,
    Latcho

  • Using drag and drop property in forms.

    Hi all,
    I want to use drag and drop property in a form during
    runtime.I am using oracle 7.3.I don't want to call any
    another application.
    Is there any way?
    Thx in advance.

    Mona ! First tell your problem in brief ..Actually what you want
    on runtime ...would you like to fetching the data from one item
    to another or change the position of any item or
    pushbutton ...or what..give detail ...obviously i can help you..
    there are many commands like set_item_property ,
    get_item_property but right now i could not understand your
    prob ..tell me in brief..
    You can ask me at [email protected]..
    -Anwar

  • Is this Oracle Reports bug – "break order property" in "group above" report

    Is this Oracle Reports bug – “break order property” in "group above" report
    Could anybody confirm that in "group above" report, we could only order the brake column's values with ""none" or "ascending" or "descending" provided by "break order property"?
    In the following example, “Dept” is brake column. Oracle Reports allows us to order values in “Dept” with “descending” provided by “break order property”:
    Dept 30
    job ename salary
    xxx xxx xxx
    xxx xxx xxx
    Dept 20
    job ename salary
    xxx xxx xxx
    xxx xxx xxx
    Dept 10
    job ename salary
    xxx xxx xxx
    xxx xxx xxx
    or “ascending” provided by “break order property”:
    Dept 10
    job ename salary
    xxx xxx xxx
    xxx xxx xxx
    Dept 20
    job ename salary
    xxx xxx xxx
    xxx xxx xxx
    Dept 30
    job ename salary
    xxx xxx xxx
    xxx xxx xxx
    I need to do:
    Dept 20
    job ename salary
    xxx xxx xxx
    xxx xxx xxx
    Dept 10
    job ename salary
    xxx xxx xxx
    xxx xxx xxx
    Dept 30
    job ename salary
    xxx xxx xxx
    xxx xxx xxx
    Could I do this? Could anybody confirm that we could never ever do this, or If yes, how?
    Millions of thanks for advice.
    M.Z.
    Edited by: jielan on Sep 18, 2010 8:23 AM

    Why should that be a bug? You have a custom requirement and have to find a way to fulfill it. But, what is your actual sorting order? Do you have only this three departments? If so, you could add an addtional column in your query like
    DECODE(DEPT,  20, 1, 10, 2, 30, 3, 4) SORTINGput that column in the same group as dept and sort after that new column.

  • Java 1.6.0_05 does not recognize first and last property in jnlp file

    Hi
    Has anybody else seen this?
    The jnlp file contains five properties, but the JRE does not recognize the first nor the last property.
    It has been working great since 1.4.2, through 1.5 and 1.6 until 1.6.0_05.
    <property name='bog' value='%2fdata%2fkirkeboeger1892%2f'/>
    <property name='opslag' value='aa001/AB/007/0000a-A.Jpg,aa001/AB/007/0002a-F.Jpg,... </property>
    <property name='sessionId' value='ed0l5n55yu2h04alvqxdpbn3'/>
    <property name='service' value='http://ao.sa.dk/LAView/ImageServer/Service1.asmx'/>
    <property name='titel' value='1908+-+1924%2c+Agerskov%2c+N%c3%b8rre+Rangstrup%2c+Haderslev'/>The 'opslag' property is much longer, so I cut it off to make it more readable.
    Pressing 's' in the console gives me this
    Dump system properties ...
    awt.toolkit = sun.awt.windows.WToolkit
    file.encoding = Cp1252
    file.encoding.pkg = sun.io
    file.separator = \
    http.auth.serializeRequests = true
    https.protocols = TLSv1,SSLv3
    java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment
    java.awt.printerjob = sun.awt.windows.WPrinterJob
    java.class.path = C:\Program Files\Java\jre1.6.0_05\lib\deploy.jar
    java.class.version = 50.0
    java.endorsed.dirs = C:\Program Files\Java\jre1.6.0_05\lib\endorsed
    java.ext.dirs = C:\Program Files\Java\jre1.6.0_05\lib\ext;C:\Windows\Sun\Java\lib\ext
    java.home = C:\Program Files\Java\jre1.6.0_05
    java.io.tmpdir = C:\Users\MAJ-BR~1\AppData\Local\Temp\
    java.library.path = C:\Program Files\Java\jre1.6.0_05\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\Java\jre1.6.0_05\bin;C:\Program Files\Mozilla Firefox;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;"C:\Program Files\Java\jre1.6.0_05\bin"
    java.protocol.handler.pkgs = com.sun.javaws.net.protocol|com.sun.deploy.net.protocol
    java.runtime.name = Java(TM) SE Runtime Environment
    java.runtime.version = 1.6.0_05-b13
    java.security.policy = file:C:\Program Files\Java\jre1.6.0_05\lib\security\javaws.policy
    java.specification.name = Java Platform API Specification
    java.specification.vendor = Sun Microsystems Inc.
    java.specification.version = 1.6
    java.vendor = Sun Microsystems Inc.
    java.vendor.url = http://java.sun.com/
    java.vendor.url.bug = http://java.sun.com/cgi-bin/bugreport.cgi
    java.version = 1.6.0_05
    java.vm.info = mixed mode, sharing
    java.vm.name = Java HotSpot(TM) Client VM
    java.vm.specification.name = Java Virtual Machine Specification
    java.vm.specification.vendor = Sun Microsystems Inc.
    java.vm.specification.version = 1.0
    java.vm.vendor = Sun Microsystems Inc.
    java.vm.version = 10.0-b19
    javaplugin.proxy.config.type = direct
    javawebstart.version = javaws-1.6.0_05
    jnlpx.heapsize = 64m,128m
    jnlpx.home = C:\Program Files\Java\jre1.6.0_05\bin
    jnlpx.jvm = "C:\Program Files\Java\jre1.6.0_05\bin\javaw.exe"
    jnlpx.remove = false
    jnlpx.splashport = 49557
    line.separator = \r\n
    opslag = aa001/AB/007/0000a-A.Jpg,aa001/AB/007/0002a-F.Jpg,...
    os.arch = x86
    os.name = Windows Vista
    os.version = 6.0
    path.separator = ;
    service = http://ao.sa.dk/LAView/ImageServer/Service1.asmx
    sessionId = ed0l5n55yu2h04alvqxdpbn3
    sun.arch.data.model = 32
    sun.boot.class.path = C:\Program Files\Java\jre1.6.0_05\lib\resources.jar;C:\Program Files\Java\jre1.6.0_05\lib\rt.jar;C:\Program Files\Java\jre1.6.0_05\lib\sunrsasign.jar;C:\Program Files\Java\jre1.6.0_05\lib\jsse.jar;C:\Program Files\Java\jre1.6.0_05\lib\jce.jar;C:\Program Files\Java\jre1.6.0_05\lib\charsets.jar;C:\Program Files\Java\jre1.6.0_05\classes;C:\Program Files\Java\jre1.6.0_05\lib\javaws.jar;C:\Program Files\Java\jre1.6.0_05\lib\deploy.jar
    sun.boot.library.path = C:\Program Files\Java\jre1.6.0_05\bin
    sun.cpu.endian = little
    sun.cpu.isalist = pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
    sun.desktop = windows
    sun.io.unicode.encoding = UnicodeLittle
    sun.java.launcher = SUN_STANDARD
    sun.jnu.encoding = Cp1252
    sun.management.compiler = HotSpot Client Compiler
    sun.os.patch.level =
    trustProxy = true
    user.country = DK
    user.dir = C:\Users\Maj-Britt\Documents
    user.home = C:\Users\Maj-Britt
    user.language = da
    user.name = Maj-Britt
    user.timezone = Europe/Paris
    user.variant = As one can clearly see, the 'bog' and 'titel' (i.e. first and last) properties are missing, resulting (bad code - I know) in a NullPointerException.

    We also have this problem, but it's not first and last property.
    We have 6 properties, and the 3. property is gone.
    If I download the jnlp file, the property is there, if I choose show jnlp file in "javaws -viewer" it's not there. Only difference between this property and the working properties is length.
    The length is char 255, and the data is base64 encoded.
    I worked fine before upgrading to Java 6 update 5.
    Anyone any ideas?

  • Publishing Features Property WelcomePageUrl and Page Not Found

    Hello guys,
    I have created a Site Definition using Visual Studio 2012 which generates 3 files for us: Default.aspx - Webtemp_SiteDefinition1.xml - Onet.xml
    I have customized only the onet.xml as follows:
    <?xml version="1.0" encoding="utf-8"?>
    <Project Title="SiteDefinition1" Revision="2" ListDir="" xmlns:ows="Microsoft SharePoint" xmlns="http://schemas.microsoft.com/sharepoint/">
    <NavBars>
    </NavBars>
    <Configurations>
    <Configuration ID="0" Name="SiteDefinition1" CustomMasterUrl="_catalogs/masterpage/mymaster.master" MasterUrl="_catalogs/masterpage/mymaster.master">
    <Lists/>
    <SiteFeatures>
    <!--PublishingPrerequisites Feature-->
    <Feature ID="{a392da98-270b-4e85-9769-04c0fde267aa}"/>
    <!--PublishingResources Feature-->
    <Feature ID="{aebc918d-b20f-4a11-a1db-9ed84d79c87e}"/>
    <!--PublishingLayouts Feature-->
    <Feature ID="{d3f51be2-38a8-4e44-ba84-940d35be1566}"/>
    <!--Publishing Feature-->
    <Feature ID="{f6924d36-2fa8-4f0b-b16d-06b7250180fa}" />
    <!--Sharepoint Server Standard Feature-->
    <Feature ID="{b21b090c-c796-4b0f-ac0f-7ef1659c20ae}" />
    <!--Sharepoint Server Enterprise Feature-->
    <Feature ID="{8581a8a7-cf16-4770-ac54-260265ddb0b2}" />
    <!--Document Set Feature-->
    <Feature ID="{3bae86a2-776d-499d-9db8-fa4cdc7884f8}" />
    <!--Document ID Feature-->
    <Feature ID="{b50e3104-6812-424f-a011-cc90e6327318}" />
    <!--Search Server Webparts Feature-->
    <Feature ID="{eaf6a128-0482-4f71-9a2f-b1c650680e77}" />
    <!-- Termstore Site Features -->
    <Feature ID="73EF14B1-13A9-416b-A9B5-ECECA2B0604C" />
    <Feature ID="7C637B23-06C4-472d-9A9A-7C175762C5C4" />
    <Feature ID="AEBC918D-B20F-4a11-A1DB-9ED84D79C87E">
    <Properties xmlns="http://schemas.microsoft.com/sharepoint/">
    <Property Key="AllowRss" Value="false"/>
    <Property Key="SimplePublishing" Value="false" />
    </Properties>
    </Feature>
    <Feature ID="7916bd78-38dd-4595-a02f-68cd4975144a" />
    </SiteFeatures>
    <WebFeatures>
    <Feature ID="22A9EF51-737B-4ff2-9346-694633FE4416">
    <Properties xmlns="http://schemas.microsoft.com/sharepoint/">
    <Property Key="ChromeMasterUrl" Value="~SiteCollection/_catalogs/masterpage/mymaster.master"/>
    <Property Key="PagesListUrl" Value=""/>
    <Property Key="AvailableWebTemplates" Value=""/>
    <Property Key="AvailablePageLayouts" Value=""/>
    <Property Key="SimplePublishing" Value="true" />
    </Properties>
    </Feature>
    <Feature ID="541F5F57-C847-4e16-B59A-B31E90E6F9EA">
    <Properties xmlns="http://schemas.microsoft.com/sharepoint/">
    <Property Key="InheritGlobalNavigation" Value="true"/>
    <Property Key="IncludeSubSites" Value="true"/>
    <Property Key="IncludePages" Value="false"/>
    </Properties>
    </Feature>
    <Feature ID="94C94CA6-B32F-4da9-A9E3-1F3D343D7ECB" />
    </WebFeatures>
    <Modules>
    <Module Name="DefaultBlank" />
    </Modules>
    </Configuration>
    </Configurations>
    <Modules>
    <Module Name="DefaultBlank" Url="" Path="">
    <File Url="default.aspx">
    </File>
    </Module>
    </Modules>
    </Project>
    This code works very well while creating a Top Level Site Collection or a Site Collection under a Site Collection.
    However when I add the WelcomePageUrl Property of the Publishing Feature (see below), SharePoint throws an error "Page not found - The page you're looking for doesn't exist."
    Note that I would like to set a WelcomePageUrl which would be a customized default.aspx or even renamed aspx file (for example: mydefault.aspx)
    <Feature ID="22A9EF51-737B-4ff2-9346-694633FE4416">
    <Properties xmlns="http://schemas.microsoft.com/sharepoint/">
    <Property Key="ChromeMasterUrl" Value="~SiteCollection/_catalogs/masterpage/LenzeV4.master"/>
    <Property Key="WelcomePageUrl" Value="$Resources:osrvcore,List_Pages_UrlName;/default.aspx"/>
    <Property Key="PagesListUrl" Value=""/>
    <Property Key="AvailableWebTemplates" Value=""/>
    <Property Key="AvailablePageLayouts" Value=""/>
    <Property Key="SimplePublishing" Value="true" />
    </Properties>
    </Feature>
    Please help.

    Hello guys,
    Was on leave so could not reply!
    The trick is to name the module like the custom default page - for example in my case my default page name is "defaultCustom.aspx" hence I named the module <Module Name="defaultCustom" />.
    Here is the entire onet.xml
    <?xml version="1.0" encoding="utf-8"?>
    <Project Title="SiteDefinition1" Revision="2" ListDir="" xmlns:ows="Microsoft SharePoint" xmlns="http://schemas.microsoft.com/sharepoint/">
    <NavBars>
    </NavBars>
    <Configurations>
    <Configuration ID="0" Name="SiteDefinition1" CustomMasterUrl="_catalogs/masterpage/CustomV4.master" MasterUrl="_catalogs/masterpage/CustomV4.master">
    <Lists/>
    <SiteFeatures>
    <!--PublishingPrerequisites Feature-->
    <Feature ID="{a392da98-270b-4e85-9769-04c0fde267aa}"/>
    <!--PublishingResources Feature-->
    <Feature ID="{aebc918d-b20f-4a11-a1db-9ed84d79c87e}"/>
    <!--PublishingLayouts Feature-->
    <Feature ID="{d3f51be2-38a8-4e44-ba84-940d35be1566}"/>
    <!--Publishing Feature-->
    <Feature ID="{f6924d36-2fa8-4f0b-b16d-06b7250180fa}" />
    <!--Sharepoint Server Standard Feature-->
    <Feature ID="{b21b090c-c796-4b0f-ac0f-7ef1659c20ae}" />
    <!--Sharepoint Server Enterprise Feature-->
    <Feature ID="{8581a8a7-cf16-4770-ac54-260265ddb0b2}" />
    <!--Document Set Feature-->
    <Feature ID="{3bae86a2-776d-499d-9db8-fa4cdc7884f8}" />
    <!--Document ID Feature-->
    <Feature ID="{b50e3104-6812-424f-a011-cc90e6327318}" />
    <!--Search Server Webparts Feature-->
    <Feature ID="{eaf6a128-0482-4f71-9a2f-b1c650680e77}" />
    <!-- Termstore Site Features -->
    <Feature ID="73EF14B1-13A9-416b-A9B5-ECECA2B0604C" />
    <Feature ID="7C637B23-06C4-472d-9A9A-7C175762C5C4" />
    <Feature ID="AEBC918D-B20F-4a11-A1DB-9ED84D79C87E">
    <Properties xmlns="http://schemas.microsoft.com/sharepoint/">
    <Property Key="AllowRss" Value="false"/>
    <Property Key="SimplePublishing" Value="false" />
    </Properties>
    </Feature>
    <!--Custom Site Feature-->
    <Feature ID="7916bd78-38dd-4595-a02f-68cd4975144a" />
    <!--Custom Master Page Feature-->
    <Feature ID="{66b35b36-fd66-4a16-ab68-d3b47ae8cbf7}" />
    <!--Custom Layout Page Feature-->
    <Feature ID="{7a226876-f2c4-45da-b09b-bd06598cecac}" />
    </SiteFeatures>
    <WebFeatures>
    <!-- Publishing feature -->
    <Feature ID="22A9EF51-737B-4ff2-9346-694633FE4416">
    <Properties xmlns="http://schemas.microsoft.com/sharepoint/">
    <Property Key="ChromeMasterUrl" Value="~SiteCollection/_catalogs/masterpage/CustomV4.master"/>
    <Property Key="DefaultPageLayout" Value="~SiteCollection/_catalogs/masterpage/Custom.Layout.aspx"/>
    <Property Key="WelcomePageUrl" Value="$Resources:osrvcore,List_Pages_UrlName;/defaultCustom.aspx" />
    <Property Key="SimplePublishing" Value="true" />
    <Property Key="RequireCheckoutOnPages" Value="False" />
    </Properties>
    </Feature>
    <!--This Feature and Properties corresponds to the Navigation Settings UI page-->
    <Feature ID="541F5F57-C847-4e16-B59A-B31E90E6F9EA">
    <!-- Per-Web Portal Navigation Properties-->
    <Properties xmlns="http://schemas.microsoft.com/sharepoint/">
    <Property Key="InheritGlobalNavigation" Value="true"/>
    <Property Key="ShowSiblings" Value="true"/>
    <Property Key="IncludeSubSites" Value="true"/>
    </Properties>
    </Feature>
    <!-- Enterprise Wiki Feature -->
    <Feature ID="76D688AD-C16E-4cec-9B71-7B7F0D79B9CD" />
    </WebFeatures>
    <Modules>
    <Module Name="defaultCustom" />
    </Modules>
    </Configuration>
    </Configurations>
    <Modules>
    <Module Name="defaultCustom" Url="$Resources:osrvcore,List_Pages_UrlName;" Path="">
    <File Url="defaultCustom.aspx" Type="GhostableInLibrary" Level="Draft" >
    <Property Name="Title" Value="$Resources:cmscore,EnterpriseWiki_Site_WelcomePageTitle;" />
    <Property Name="PublishingPageLayout" Value="~SiteCollection/_catalogs/masterpage/Custom.Layout.aspx, Custom Web Part Page" />
    <Property Name="ContentType" Value="$Resources:cmscore,contenttype_welcomepage_name;" />
    </File>
    </Module>
    </Modules>
    </Project>

  • Looking for oracle.adf.view.faces.CHECK_FILE_MODIFICATION property

    Hi ,
    when i try to run a simple ADF form for the second time-one 'instance' of it has already run successfully some time ago , and the status of "embedded runtime OC4J SERVER" is running- i get the following error:
    INFO: ADF Faces is running with time-stamp checking enabled. This should not be used in a production environment. See the oracle.adf.view.faces.CHECK_FILE_MODIFICATION property in WEB-INF/web.xml
    I have searched the web.xml file in the current application...(userInterface project->Web Content - > Web-Inf) but i have not found the property "oracle.adf.view.faces.CHECK_FILE_MODIFICATION"....
    Where is there declared...????
    NOTE : I use JDev 10.1.3.
    My greetings,
    Simon

    Hi,
    oracle.adf.view.faces.CHECK_FILE_MODIFICATION is a context parameter that in JDeveloper IDE is set to true by default. You can set this to false but then this means that the JSPX files are no longer compiled when running them in the embedded OC4J, which means you actually see the "old" version
    <!-- If this parameter is enabled, ADF Faces will automatically
    check the modification date of your JSPs, and discard saved
    state when they change; this makes development easier,
    but adds overhead that should be avoided when your application
    is deployed -->
    <context-param> <param-name>oracle.adf.view.faces.CHECK_FILE_MODIFICATION</param-name>
    <param-value>false</param-value>
    </context-param>
    Frank

  • Possible to use an expression for a property path?

    Hello,
    I've run into a problem.  I want to use SetNumElements on an array, for which I'd like to vary the first "array" parameter based on an iteration of a loop.   I want to increment the size of a different array for every iteration of a "for each" loop.  The array which the forEach loop is iterating over contains the names of the arrays contained in Parameters.  So I'm trying to use an expression to build the property path within the SetNumElements parameter, but it is complaining.  My expression is:
    SetNumElements("Parameters." + Locals.CurrentElement, GetNumElements("Parameters." + Locals.CurrentElement) + 1)
    I get "expected array, found string" syntax error.
    Is it possible to "build" the property name string in this function?  I see the "evaluate" function, but that seems it will try to return the contents of the property, which I don't want.  I just want to build the array name itself.
    Thanks for any input.
    David Jenkinson

    Hello David,
    It looks like you are evaluating a specific element (in this case that element is a string).
    Here is a simple example of what I believe your overall objective is:
    Parameters.Random is an array of numerics with 10 elements 
    Locals.String = "Random"
    In my statement step I have:
    SetNumElements(Evaluate("Parameters."+Locals.String), 1)
    So essentially we must use evaluate when building an expression for the entire array, not just one element.
    If the expression you want is contained in that array (ie if Parameters.StepTypesToSearchFor[1] = some string of the array ("locals.array") then you will need another Evaluate() function to evaluate that expression.
    As an aside, this will only change the size at runtime, the variables (unless they are Station Globals) will return to the defaults when the execution is complete.
    With warm regards,
    David D.

  • Any way to avoid absolute path names in property files?

    I would like to create property files that only rely on relative positions
    of files. Is there any way to accomplish this? It would be nice if the
    property file values supported property substitution,
    eg. weblogic.ejb.deploy=%weblogic.system.home%/classes/beanManaged.jar
    Or is it safe to simply use relative paths for all file references?
    eg. weblogic.ejb.deploy=classes/beanManaged.jar
    Thank you for any suggestions.
    Marko.

    Alexander Petrushko wrote:
    >
    Marko Milicevic wrote:
    I would like to create property files that only rely on relative positions
    of files. Is there any way to accomplish this? It would be nice if the
    property file values supported property substitution,
    eg. weblogic.ejb.deploy=%weblogic.system.home%/classes/beanManaged.jar
    Or is it safe to simply use relative paths for all file references?
    eg. weblogic.ejb.deploy=classes/beanManaged.jarRelative paths do not work -- In what version? I've always deployed beans with relative paths. It's
    always worked for me.
    You might also be interested in checking out our EJB 1.1/2.0 beta. The
    new EJB container does not require a weblogic.ejb.deploy line in your
    properties file.
    -- Rob
    I filed an enhnacement request with support
    that was asking for deployment by name and with a relative path, e.g.
    weblogic.ejb.deploy.myBean=classes/beanManager.jar
    The workaround is to do the substitution of %weblogic.system.home% yourself
    as part of the build. If you use Ant as your build tool, you can accomplish
    this with a
    few lines of XML.
    Cheers
    Alex

  • How to get all property names and values of an bean instance at runtime?

    How can I get all property names and values of an bean instance at runtime?
    (The class of the bean instance is dynamic and I can not know before I write the code .)

    Look at Class. It has a way to get at all public methods and attributes.
    If you need to get to private attributes you can do what the Introspector does and expect the methods to follow the Bean pattern and pull the attributes out based upon that. Privates are all hidden from direct access but through the Bean Pattern they can be figured out.

  • How to use different mail address in "from" and "user" property?

    I'd like to use the user enter mail address as the "from" property and use my mail account to send it, but I got error: com.sun.mail.smtp.SMTPSendFailedException: 553 You are not authorized to send mail, authentication is required when set different mail address in "from" and "user" property, how to resolve this problem?

    Basically that's a bad idea. Suppose you used your server to send messages that claimed to come from "[email protected]"? Naturally enough people have tried that, either as a joke or as an attempt at fraud, so that servers will check to see if the message is coming from the server it claims to be coming from. And if it isn't -- as in that example -- it will consider it a forgery. Best case (for you) is that the server will flag it as spam or junk. Worst case is that your server will be blacklisted and other servers will ignore it.

  • Function module for logical file path and name

    Hello all,
    I am wondering is there any function module available to translate a logical file path to a physical file path and a logical file name to a physical file name? Thanks a lot!
    Regards,
    Anyi

    Please check the FM FILE_NAME_GET.
          CALL FUNCTION <b>'FILE_GET_NAME'</b>
             EXPORTING
               logical_filename = 'ZDELCHKREP'
               parameter_1 = it_cntry-cntry
             IMPORTING
               file_name        = l_file
             EXCEPTIONS
               file_not_found   = 08.
        CALL FUNCTION <b>'FILE_GET_NAME_USING_PATH'</b>       EXPORTING
             logical_path = 'ZDELCHKREP'
             file_name = l_file
           IMPORTING
             file_name_with_path = l_file.
    Message was edited by: Anurag Bankley
    Message was edited by: Anurag Bankley

  • Read a property file and store it in a hashmap

    Hi,
    I have tried to read a property file and store it in a hashmap. The property-names should be stored in keys and the property-values (after = symbol) in values of the hashmap. any ideas? Is it possible to do this?

    mandy2001ir wrote:
    yes, but I need the hashmap for another reason. Actually I'm trying to use the properties file to have a dynamic hachmap. I don't want to change the code anytime I want to put a value in the hashmap. therefor I write the "keys" and "values" in a property file and change the property file. That's the reasn why we have property files, isn't it?What's a "dynamic hashmap"? There's no other kind! Whenever someone starts bandying around the word "dynamic" in contexts like this, it usually means there's a simple solution to their problem, that they haven't yet considered, or mistakenly don't believe is applicable to them, because of this "unique" need for something "dynamic". Trust me, you just need to load the file using a Properties object, and you're done. Properties extends Hashtable, which is virtually the same thing as a HashMap. Properties does exactly what you want it to. it's the very reason the class exists
    Have you even looked at the javadoc for java.util.Properties yet? I'm betting not, because if you had, you'd know exactly what I meant. And since you haven't, I'm at a bit of a loss as to how you can so easily dismiss the class as useless, despite existing to do exactly what you need

  • Active Directory accountExpires and pwdLastSet  property using JAVA

    Hi all!
    I´m trying to transform the accountExpires and pwdLastSet property retrieved from Active Directory to a Date/Time object. The value returned is a weird long integer that can´t be converted. Does anyone know something about this?
    I´m using Java 2 SDK 1.4.2.
    I am trying to do the above for accountExpires and pwdLastSet attributes in AD
    Thanks

    DrClap wrote:
    First link returned for Google keywords "active directory date format":
    [http://support.microsoft.com/kb/555936]
    Why, of course, January 1, 1601...

Maybe you are looking for