Aliases in typed literals

Hi
It seems than
SELECT s FROM TABLE (sem_match ('{ ?s :Remarks "xxx"^^<http://www.w3.org/2001/XMLSchema#string> }', ...
works - but not
SELECT s FROM TABLE (sem_match ( '{ ?s :Remarks "xxx"^^<xsd:string> }', ...
with xsd defined as alias.
Regards - Christian

Thank's it works (I'm sure I tried that as well - maybe some caching was involved).
By the way - how can you search for all literals of let's say type xsd:string?
sem_match ( '{?s ?p ?o^^xsd:string}', ...
does not seem to do it.
Regards - Chr.

Similar Messages

  • REG EXP pattern ?

    Hi Folks;
    I need to create a reg exp pattern with these rules :
    mpexprfinal      : mpexprUnit(\ OROP\ mpexprUnit)*
    mpexprUnit      : mp(\ AND\ mp)*minusplusexpr
    minusplusexpr :     "\ \(+\)\ " or "\ \(-\)\ "
    mp : "[A-Z]{1}[0-9]{6}" (ex: I123456)
    OROP : ","
    Help me please!
    Edited by: Moostiq on 2 mai 2011 16:52
    Edited by: Moostiq on 2 mai 2011 16:52

    Hi,
    I don't know of any really good way to assign names to sub-patterns in a regular expression, and then use those names in bigger expressions.
    You can (sort of) do the same thing in SQL, by assigning column aliases to string literals (as in def_1, below), or concatentions of literals and previouslly defined aliases (as in def_2):
    WITH     def_1         AS
         SELECT     '\(\+|-\)'          AS minusplusexpr
         ,     '[A-Z]{1}[0-9]{6}'     AS mp
         ,     ';'               AS orop
         FROM     dual
    ,     def_2        AS
         SELECT  def_1.*
         ,     mp || '( AND '
                 || mp
                 || ')*'          AS mpexprunit
         FROM    def_1
    SELECT     x.*
    FROM          table_x     x
    CROSS JOIN     def_2     d
    WHERE     REGEXP_LIKE ( x.txt
                  , d.mpexprunit || '('
                                 || d.orop
                           || '|'
                           || d.mpexprunit
                           || ')*'
    ;Take this as pseudo-code. I'm not sure it will do anything. (I can't test it until you post some sample data).
    If it does run, I'm not sure it will do what you want (since you haven't explained what you want).
    You may find it easier just to repeat the expressions in your code. An approach like the one above is most useful when the definitions (mp, mpexprunit, and so on) change frequently.
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables, and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using. I'm not sure you'll need any features that were added after Oracle 10.1, but why take a chance?

  • AMBIGUOUS COLUMN DEFINITION

    I'M GETTING "AMBIGUOUS COLUMN DEFINITION" WHICH IS CLEARLY WRONG SO HOW DO I FIX IT ?

    user8093006 wrote:
    I'M GETTING "AMBIGUOUS COLUMN DEFINITION" WHICH IS CLEARLY WRONG SO HOW DO I FIX IT ?
    To explain what is happening. It is called name resolution.
    You use object names in code - where the object you refer to by name can be a function, procedure, variable, parameter, constant, global, etc. In SQL code, this also includes columns, tables, views, and so on.
    You get name collisions. This is when 2 objects have the same name. In SQL this often happens (and should happen!). The DEPT table has a column (primary key) called DEPT_ID. The EMP table indicates which department the employee works for, via its column (foreign key) DEPT_ID.
    So the name reference DEPT_ID is used multiple times by multiple tables.
    When you use DEPT_ID in a SQL statement, the SQL engine needs to resolve that name and determine to which column in which table you are referring to. This name resolution has a scope. The scope says which tables need to be considered (checked) for having a DEPT_ID column. The scope is determined (in this case) by the tables your SQL is selecting from.
    Now if your scope includes both EMP and DEPT tables, there is a name collision - and the SQL engine does not know whether your DEPT_ID name refers to the column in the EMP table, or the column in the DEPT table.
    And this is the error you are seeing. The SQL engine is saying that your name reference DEPT_ID is ambiguous, as it exists as different objects within that SQL's resolution scope.
    The fix is explicit scope. Where you do not use DEPT_ID and have the SQL engine figure out in which table it is (within the current scope) - instead you tell that to the SQL engine and indicate which table it is in.
    There are 2 method to use explicit scope in SQL. You can do that via using the name of the owner of the object - in this case, the name of the table that owns that column:
    select
        dept.dept_id,
        dept.department_name,
        emp.surname
    from dept, emp
    where dept.dept_id = emp.dept_id
    Or you can use aliasing (less typing and a bit more flexible ito code maintenance):
    select
        d.dept_id,
        d.department_name,
        e.surname
    from dept d, emp e
    where d.dept_id = e.dept_id
    Explicit scope is usually a good thing. Where implicit scope is needed, a feature such as synonyms should be considered (it allows explicit scope to be used, while enabling one to easily change the object that the name resolves to).

  • Error SQL70015: Error validating element [dbo].[GetDocument]: Deprecated feature 'String literals as column aliases' is not supported

    Using MS SQL Management Studio 2012 attempting to export (from GoDaddy) a .bacpac database for import to Azure and get the error message listed in the Title (String literals as column aliases is not supported on SQL Azure). There was a discussion of this
    problem in mid-2013, but it ended with saying that this was a bug with Azure validation, but had been fixed and did not require rewriting of databases. Anyone with a clue how to successfully export/import around this?

    Hello,
    A string enclosed in quotation marks used as a column alias for an expression in a SELECT list is not support in Windows Azure SQL database. Please use "expression [AS] column_alias" instead of " 'string_alias' = expression ".
    In your case, you can try to create an application with in SSDT and use Schema Compare to filter out and fixed incompatible objects, and then deploy the database to Windows Azure SQL database.
    Reference:
    Use SQL Server Data Tools to Migrate a Database to Azure SQL Database
    Migrating a Database to SQL Azure using SSDT
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • My iphone 4 and my girlfriends seem to be sharing messages. The display shows one person typing but it is actually going back and forth between devices. Any ideas?

    We share and icloud and itunes account. But we have seperate carriers and phone numbers obviously.  She sends me a mesage and it comes through on my ipad.  I send her a message and it shows up on her phone as coming from her own number (no name is displayed, just the phone number). And the entire stream shows on her phone on the right hand side in blue as if she was doing all the typing. 
    Then a conversation I was having with another contact showed up on her phone displayed as if she was discussing.  It was not a joint message but this contact is also one of her contacts. And the name displayed at the top was the other contact.  She could join in the conversation too but her messages showed as mine.  The other contact saw all messages but they showed as coming from my email address not imessage.  I recently did the firm ware upgrade but she did not.  Her phone says there is an error when trying to locate it.
    Any messages sent to other contacts by her are only showing to the other contacts and not to me.  And they are displayed properly.
    It only started today and this has never happened before. We have both power cycled a couple times and wiped out all messages to start fresh as well.  Nothing has worked so far.
    Any ideas??

    Note that if you are sharing the same AppleID when you activated iMessage the very first time, then you are literally sharing the same iMessage account.  The primary account ID for iMessage is the AppleID used to verify the service the first time - then it associates phone numbers and email addresses as aliases to that account.
    One of you needs to create a new AppleID and use it JUST for iMessage, so you each have a separate and unique iMessage account to use.  So you can continue to share an AppleID for iTunes and iCloud and all your purchased content, just use different AppleIDs for iMessage.
    If you need another email for AppleIDs (an AppleID is literally just an email address) just grab a gmail account to use.  In iMessage, tap on the AppleID and log off, then log back in with the new AppleID and it will activate a new iMessage account using that AppleID.

  • Network Shared Variable: Aliasing not working

    Hello!
    I am running a cRIO 9075, which is publishing network shared variables.
    I can see and modify them within Distributed System Manager.
    Unfortunately I am not able to read/write the variables through labview.
    What I have done so far:
    Tools -> Shared Variable -> Register Computer, using the IP of the cRIO
    Adding a Variable to the project. Type = Network-Published, Enable Aliasing, choosing "Browse" to select the variable (all published variables from cRIO are shown there), Access Type = read/write. The PSP-URL is: \\192.168.10.70\WaveformManager\Op
    Trying to read the variable results code -1950679034 and the result is always the default value for that data type.
    BUT this works: using the VIs Data Communication / Shared Variable / Read/Write Variable  and typing in the same URL the Distributed System Manager is showing is showing (in my case: \\192.168.10.70\WaveformManager\Op)
    So, what am I doing wrong? Did I forget something or misunderstand how "Aliasing" works?
    Thanks!

    hi,
    in which way to you read your shared variable? If you read it before you write  a value "into" the variable it may couse this waring.
    Have you tried this?
    http://digital.ni.com/public.nsf/allkb/7DBC2C3E95AFD85C86257442005CF74C?OpenDocument

  • Obtaining a weakly typed cursor variable's field list

    In a situation where a weakly typed cursor variable is passed to a procedure, after having been previously opened, is there any way to find out what the field names or aliases are that make up the underlying cursor? Is this information available in some dynamic view?

    Try:
    select view_name from dba_views where view_name like '%CURSOR%';
    The views you may be interested in are gv_$open_cursor and v_$open_cursor. Both have a column named SQL_TEXT that will at least give the statement the cursor is executing.
    Hope this helps.

  • How to create aliases in terminal

    I just installed mysql on my imac and in the documentation it suggests that I create an alias for the mysql server path so I don't have to keep typing out the long path.
    it suggests to create an alias called 'mysql' for the path '/usr/local/mysql/bin/mysql'
    I tried this by doing the command 'alias mysql=/usr/local/mysql/bin/mysql' which works while the terminal is open. But as soon as I restart the terminal, the alias is no longer there.
    I tried creating a .bash_profile but am unsuccessful in this as after this file is created and I open terminal, it has some errors and the aliases don't work.
    If you could please help me figure out how to get these aliases to work, I would really appreciate it.
    Thanks, Chris

    I tried creating a .bash_profile but am unsuccessful in this as after this file is created and I open terminal, it has some errors and the aliases don't work.
    The key words here are "it has some errors". At the risk of stating the obvious, the solution, probably, is to fix the errors. Without some hint about what the errors are, it is hard to say more.

  • When I hit return after typing, the cursor returns to the beginning of the sentence

    I open a new layer.
    I type my text
    I hit return'
    The cursor starts typing at the beginning of the sentence, typing right over the text I just finished.  It will not go to the next line.  I've been using PS since 2 and I have never seen this nor do I know what to do about it.
    Help...
    Thanks

    starbird parrot wrote:
    Thank you.  I had no idea.  I do not believe I have ever touched that or even seen it.  I don't do a lot of text, I'm a photographer. Nor do I know what a leading value is...
    There are all sorts of gotchas in the Character panel.  That line of  T T TT Tt  at the bottom produce faux styles, for instance, so if you find all your text is capitalized, or strikethrough, you'll know where to look.  You'll notice I had vertical scale set to 118%?  Well I had forgotten that was set that way, and I will have been laying out distorted text because of it!  Purists frown upon changing a fonts aspect ratio that way, because it spoils a carefully designed font — they would say to find the right font for the job.  That is much easier than it used to be now we have TypeKit with its useful, and much appreciated filters.  Also be aware of the anti-aliasing at the bottom right corner, and also on the options bar when the Type tool is selected.  I think some users go years without realizing that is there, and then wonder why their text is all jagged.
    If you have a Lynda.com subscription, Nigel French has an excellent title called Photoshop for Designers — Type Effects.  Nigel also has a nice British accent, and a lot easier to listen to than some Lynda.com presenters.
    Watch the Online Video Course Photoshop for Designers: Type Effects
    Nigel has a whole raft of Lynda.com titles

  • Typing illegal characters

    I'm having trouble specifying \ and " as a string. Typing "\" gives me some error and NetBeans won't let me try """ for obvious reasons. Example:
    s.contains("\");How should I be doing this?

    kavon89 wrote:
    How should I be doing this?The '\' character has special meaning within string literals. If you want the actual string:
    ...you'll need to escape both the backslash and quotation mark. Example:String s = "\\\"";~

  • Find aliases by file type?

    is there a way to find all aliases in Mavericks just by them being aliases? In the finder, searching by "Kind is", Alias is not an option in the popup, and with Kind being Other and typing Alias, nothing shows up. Any ways to find them are appreciated.

    Raw Query in a Finder WIndow
    In the search window, just press the spacebar to trigger the Save + panel.
    Click +Kind menu ▸ Raw Query

  • Host aliases question

    I have been trying with no success to get a website to respond on both www.example.com and example.com . In DNS I have a
    C record for example.com
    A record for www.example.com
    If I set up web services with the host name of example.com and an alias to www.example.com, When I request example.com, I get an "Access Forbidden Error" 403 error. Typing www.example.com works though.
    Any help would be appreciated.
    Scott

    Hi there. I do have the same question:
    actually, to me, it sounds like you have a totally different question..
    Thanks for your advice. I might have missed the point, but what I want is my website responding to both example.com and www.example.com.
    You're asking this question the wrong way around. You do not 'setup your DNS' to tell your web server what to to. Instead you setup your web server to respond to different hostnames it may encounter.
    I might be wrong - but a simple alias for a site (or better: a hostname) is not enough; to resolve, at least a CNAME (like WWW) is needed. But I think we're talking about the same thing.
    There is no automatic link between DNS and web service.
    Clear to me. It just needs both entries - WWW as CNAME and www.example.com as hostname-alias - correct?!
    You either need to create multiple sites in your web server, one for each hostname you want to respond to, or setup one and add other hostnames that should map to it in the Aliases section of Server Admin.
    Yep - but as you wrote later on, it's not possible to create a wildcard for a site for the whole zone (example.com), so it would respond to any request on port 80 on the zone name.
    Server Admin DNS does not support the creation of wildcard records. You can add them manually but then have to eschew using Server Admin to manage your DNS. That said, if you're using split DNS you're likely already beyond Server Admin because it can't handle split DNS either.
    Thanks, so I definitely have to give up on SA for this. Quite a pain, thinking of many customer's setups, who want to manage the whole stuff through the GUI
    All the best from Zurich
    Roman

  • (Arial) Fonts turn into cyrillic with anti-aliasing 'none' (bug?)

    Hi, I've got this really strange problem here.
    When I'm typing 'ç' in a Photoshop I get a cyrillic 'H'. When I turn the anti-aliasing of the font into 'sharp' instead of 'none' for instance, it's back the ç again. This occurs with every key in the numeric row.
    I'm using an azerty keyboard and the ç is located on the 9-key,  This only happens with the default font 'Arial' (regular). I'm working with Photoshop CS3 (Master Collection) on a Mac OSX 1.5.6 (Leopard).

    You're welcome.   
    Undisclosed recipient wrote:
    Thrashing the preferences did the trick. I should make a habbit of this when things fall apart.
    Absolutely! It's the first thing I try when anything starts acting weird "suddenly".
    Undisclosed recipient wrote:
    I figured it was a russian H because the other letters on the numeric row were russian too (inverted R's and so on).
    Interesting.
    Incidentally, the я is not an inverted or flipped R but a uniquely Cyrillic letter which represents the diphthong YA, and its name in Russian is indeed "Ya".

  • How can I create a new iCloud account for a familiy member having a new iDevice and reuse one of my aliases for it

    Hi there,
    I moved into iCloud from the very beginning and started with one iCloud account for me and my family, making use of email aliases for family members. Now the number of personal iDevices grows and I want to create a new and separate iCloud Account for my son. The pity is, that I reserved his full name already as alias address on my initial iCloud account. If I now delete this alias, can I create a new account with the former alias as new primary email address?
    Or is there at least any transfer procedure supported for aliases between different accounts?
    Thanks for your help, lauterbachj

    Couldn't agree more... the folks who are getting penalized for this are the early adopters of .Mac/iCloud dating from the days when the only way to implement a "family" account was to use aliases. Now all my kids' / my wife's name aliases sit in my account, unable to move. I guess the good news is that if I delete them nobody else will get them, but this seems a pretty poor consolation.
    Would it really be so difficult to implement a "move this alias to another iCloud account" option that requires the "sender" and "receiver" to exchange some sort of code to implement the transation in order to prevent fraud?

  • Have THREE iPhoto Libraries...How can I combine them? Plus most ALIASES!

    I have read some of the forum topics that I hope can help me. I have iPhoto 2 and when I messed up my iBook OS 10.2.8, I lost the iPhoto ( about 2K pictures :-()
    Now i have the 'puter back but still missing the iPhoto. I have found Three(3) iPhoto Libraries with "Find"...all are just labeled "iPhoto Library".NONE have numbers after the iPhoto Library...each has a different amount of "items" listed as being in the folder. 156 items, 126 items, and 30 items . ALL have photos NOT in the other Library folders.
    All three have different pathways:
    156 items:(user name)/Desktop 2/iPhoto folder-12/07**/iPhoto Library;
    127 items:(user name)/Desttop 2/iPoto folder1/26/08**all alias/ iPhoto Library;
    30 items: (user name)/Pictures 2/iPhoto 2/iPhoto Library.
    My question is:
    1. Is there a simple way to combine these so I have ONE iPhoto Library with ALL the photos in it???
    2. Most, not all, of the photos are "Aliases" but I can see the photos in "Preview"..but can't move them into an iPhoto blank folder.
    I gather I need to solve the "Alias" problem FIRST? right?I need to match the "Aliases" with their originals...
    Then hopefully move photos into the largest iPhoto Library with the 156 items in it. Is there a simple way to do this???

    OK...so I now have the MAJOR iPhoto Lib. I thought I'd lost (thanks to all your help steerin' me in the right direction).:-)
    I want to get the photos FROM the other two smaller Libraries and switch them to the BIG Lib. I now have....Is there a KB that will tell me how to do that...without having to move the BIG Library I have retrieved???
    Like, can I move the smaller Lib.s to the desktop and take out the photos by dragging them into the BIG iPhoto Lib.?...as there are many duplicates in the two smaller Lib.s that I don't need to add to the BIG iPhoto Library.
    The iPhoto Help " Switching between photo libraries"sez
    "1. Quit iPhoto;
    2. Rename your current Photo Library folder in the Finder or move it to a new location on your HD.;
    3 Open iPhoto;
    4 Click Find Library;
    5.Choose the library you want to display.;
    6. Click open.
    The library appears in the iPhoto viewing area."
    I DO NOT want to switch between lib.s, I want to MOVE photos FROM the smaller lib.s to the BIG iPhoto Library, so I will have only ONE iPhoto Lib. to deal with.Consolidation NOT switching....
    Am I making sense here?????

Maybe you are looking for

  • Problems after transfering Cost centers with LSMW

    Hi, I have a problem after transfering Cost Centers with LSMW. The first Batch input run created all cost centers in one CC Group erroneously - cause they should be placed in different CC groups. I changed LSMW settings and made another batch input r

  • CS6 - Advanced Drawing Mode - Problem

    Hello Everyone' I just got a new Dell XPS 8500 with a solid state drive and 16 gigs of RAM but.. I've encounted an issue.. When using 'Advanced Drawing Mode' which was the default setting, the edit tools such as 'Free Transform' turns my canvas white

  • IFrame data not loading on iPad

    Hi, I am having trouble figuring out why images are not loading in my iFrame when the web page is loaded on an iPad or iPhone.... http://www.1504westminster.com/photo1.htm The content is simply text and images. It just partially loads. Works well on

  • List all contents of a hard drive by file size?

    Hi All, My problem is I have a 27+ GB start-up disc "system" partition I rarely save files to, but I'm using over 26 GB of storage for some reason. I have only a small handful of files in the usual culprits: no movies and only a handful of documents

  • IPad Air 2 failed activate the iMessage and FaceTime

    I unable sign in to FaceTime and iMessage in iPad Air 2 after upgrade to iOS 8.3