Need help implimenting PLUS ldf in c++ via XMP sdk

I'm apparently suffering major brainstem bitrot and generating lots of brain coredumps, and I need help.
I'm using the XMP toolkit sdk 5.1.2 in c++ under gcc on Debian to impliment embedding PLUS ldf licensing metadata (reference: http://ns.useplus.org/LDF/ldf-XMPReference ) into images.
I have no problems generating compliant plus ldf xmp in code for everything EXCEPT for single line detail entries like "<rdf:type rdf:resource="plus:LicenseeDetail"/>" in several places in the ldf specification, viz:
<plus:Licensee>
   <rdf:Seq>
     <rdf:li>
          <rdf:type rdf:resource="plus:LicenseeDetail"/>
          <plus:LicenseeID>http://plus-id.org/AAA-987</plus:LicenseeID>
          <plus:LicenseeName>ABC Advertising Agency</plus:LicenseeName>
     </rdf:li>
   </rdf:Seq>
</plus:Licensee>
I can generate the appropriate text in memory then parse that to get an appropriate SXMPMeta and merge that, but I would really like to be able to properly generate the proper xmp in code, and would really appreciate any help preventing further brainrot!
I'm certain it's both simple and trivial, but I now can't see the trees because of the forest ... Thanks

Hi,
I'm not a XMP expert but I've been working for some years with Semantic Web technologies. My understanding is that XMP is a subset of RDF (one of the main pieces of the Semantic Web) so I will try to make my contribution to this problem from there.
Consequently, looking at your problematic piece of XMP:
<plus:Licensee>
   <rdf:Seq>
     <rdf:li>
          <rdf:type rdf:resource="plus:LicenseeDetail"/>
          <plus:LicenseeID>http://plus-id.org/AAA-987</plus:LicenseeID>
          <plus:LicenseeName>ABC Advertising Agency</plus:LicenseeName>
     </rdf:li>
   </rdf:Seq>
</plus:Licensee>
I can say that it isn't valid RDF so it shouldn't be proper XMP. This can be confirmed looking at the example for the property plus:Licensee available from the specification (http://ns.useplus.org/LDF/ldf-XMPSpecification#Licensee):
<plus:Licensee>
   <rdf:Seq>
      <rdf:li rdf:parseType="Resource">
         <rdf:type rdf:resource="plus:LicenseeDetail"/>
         <plus:LicenseeID>http://plus-id.org/AAA-987</plus:LicenseeID>
         <plus:LicenseeName>ABC Advertising Agency</plus:LicenseeName>
      </rdf:li>
   </rdf:Seq>
</plus:Licensee>
I have marked in bold where the problem is. Your piece of XML is missing the rdf:parseType="Resource" construct. I will explain why this is necessary from what I know from RDF. RDF is based on a graph model. There are resources, which correspond to graph nodes and represent the things the RDF metadata is talking about, and properties, which correspond to graph edges and represent the attributes and relations used to say things about the resources.
In RDF the convention is to use lowercase names for properties. This doesn't seem to be the convention in XMP so we must take a closer look at the XMP piece in order to identify what parts correspond to resources and to properties. From the LDF specification we know that plus:Licensee correspond to a property so it should link to a resource, in this case rdf:Seq (more specifically it is an anonymous resource (no id provided) of type rdf:Seq). Your example should have some additional markup before plus:Licensee, surely the resource that represents the licensee about which we are specifying the licensee using the plus:Licensee property.
Now, if we continue from the resource of type rdf:Seq, there is the rdf:li property (lower case as it is directly reused from the RDF specification). The problem now is that if we look directly inside rdf:li property we find rdf:type, plus:LicenseeID and plus:LicenseeName. It is clear that rdf:type (lowercase) is a property and from the LDF specification we can see that the other two also correspond to properties. Therefore, there is the problem. We have a property (rdf:li) pointing to three properties (rdf:type,...) so we are breaking the graph data model: nodes (resources) are connected through edges (properties) that link two nodes.
This is not the case for the example in the LDF specification. The rdf:parseType="Resource" constructs is a shortcut for:
<rdf:li>
   <rdf:Resource>
         <rdf:type rdf:resource="plus:LicenseeDetail"/>
         <plus:LicenseeID>http://plus-id.org/AAA-987</plus:LicenseeID>
         <plus:LicenseeName>ABC Advertising Agency</plus:LicenseeName>
   </rdf:Resource>
</rdf:li>
It basically says that the following properties should be parsed as being connected to an anonymous resource. In order to make it clearer, it is helpful to look at the graph behing that markup. For instance, you can use the RDF2SVG service and render the graph behind the example from the specification (which I have make available from a custom URL):
http://rhizomik.net/redefer-services/render?rdf=http://rhizomik.net:8080/html/~roberto/tmp /ldf-simple-example.rdf&format=RDF/XML&mode=svg&rules=http://rhizomik.net:8080/html/redefe r/rdf2svg/showgraph.jrule
I hope all this makes it clearer.
Best,
Roberto García
http://rhizomik.net/~roberto/

Similar Messages

  • NEED HELP.Can't conect to me via WI-FI

    Please guys I need help I own a iMac 9.1 using standard WI-FI that is pre-installed my Problem is that I can't (for the life of me) get my girlfriend, whose using windows 7 to share internet or access my files, or I hers. I did set up a wireless network. I'm also running windows 7 through Parallels, and both my operating systems have internet and file sharing because of parallels network adapter. This messes up everything becuase we have to taketurns using one internet and it interupts my game time, and I'm sure you all know what that's like .Any suggestions or ideas would be Highly Appreciated.

    If you meant "Cydia," that means the device has been jailbroken and we won't be able to help you here due to the Terms of Service of this forum. Sorry.

  • Need help connecting 5th gen Time capsule via wifi to existing wifi network(non-apple) and use ethernet out to AV receiver?

    Could anyone help advise me how to use my 5th gen time capsule airport to connect to my existing wireless modem(non-apple) over the wireless network (NOT using the WAN port with a cable) and then connect with an ethernet cable to give internet connectivity to my AV Receiver?  I would also like to be able to back up my macbook pro with the time machine/time capsule benefit.  I know that many AV setups have recommended using airport express to receive wireless connectivity to pass on internet through the ethernet port to AV setups, but I thought I would try to add the extra functionality of the over-the-air backups with the time capsule at the same time.  Is this possible without connecting with a wire to the modem which has no ability for a wired connection where the TV and AV setup is?   Any help would be much appreciated:)

    It doesn't work except to another apple router. Sorry.
    The express does work.. that is a difference between Express and Extreme/TC.

  • Unmountable Boot Volume, need help. trying to fix the problem via lan if posible?

    any information i could recieve from Geek Squad would be appreciated.  i have my computer purchased from best buy that i'm happy with, but my cousin's computer died with the unmountable boot volume error.  i want to use my computer to fix his, or if possible fix his directly from the internet.  any assisstance in this would be nice. thank you.

    Hi AngeNeedsHelp!
    I hope your cousin got the computer fixed. However,
    this Unmountable Boot Volume error is not always fixed by simply reinstalling
    the Operating System (OS). In fact, you may need to back up the drive using an
    external USB Hard Drive Enclosure.  Even
    then the drive may not be readable if there are physical errors/damage, and
    this is nearly impossible to do over the internet since they likely cannot boot
    the computer?  If there is important
    information on the drive I would recommend taking it to a professional such as Geek
    Squad® before attempting anything.  Best
    of luck!
    Matthew|Community Advocate | Best Buy® Corporate
    Visit our Channel on
     Private Message

  • Need help to transfer 5.1 audio via hdmi

    Hi, guys!
    This is my first post, I would like to apologize for my bad english.
    Today I received my new Mini DP to HDMI adapter and, after a little configuration, I was able to make it work properly with my mac.
    But, after all my work, I noticed that the audio transfered was only stereo, not 5.1 as my home theater can handle.
    So I searched some forums for a bit and noticed that I could try to change my configurations in "audio and midi configurations" (this is a portuguese translation, I'm not sure how is the program's name in english). Once there, I saw a lot of choices for audio via hdmi, like stereo, 5.1, 6.1 etc, but only the first was availabe, all mutichannels were disabled.
    Is there any way to make these choices available?
    Can this be a limitation of my Mini DP to HDMI adapter?
    In the item description, it says that it does transfers "uncompressed audio such as LPCM" and
    "compressed audio such as DTS Digital, Dolby Digital(including DTS-HD and Dolby True HD)".
    Thanks in advance!
    Cheers from Brazil

    As far as I know there is no way to carry more than stereo over HDMI.
    I know very little about this subject and have no experience with it myself, but I've been aware for some time of this adapter:
    http://kanexlive.com/products/iAdapt51.html
    I take the description to mean that 5.1-channel digital audio can be carried by HDMI, and if the mini-Displayport doesn't output an audio signal that rich, the Kanex adapter should be a useful alternative. I've posted the link in reply to many queries in the past, but I don't recall whether or not anyone has posted back to say they've tried the adapter and tell how well it worked for them.

  • Need help connecting to my usb disk via wan

    Hey
    Ive manage to connect to my usb disk in my own wifi network but when i try to connect to it through Safari using afp:// myip:chosenport it will not work, why doesnt it? I think ive checked all boxes in Airport ultility to make my disk avalible.
    Could some friendly soul make a guide so i know if im doing anything wrong with my settings?

    I see my usb-disk in the sidebar when i open Finder, if thats what u mean?
    I should have the latest update with Mountain Lion so i suppose it would support it? And yes i am using an Airport Extreme router!
    When i try to connect through Finder->Go to Server and-> writing my ip and connecting, the connection takes about 1 minute to say that the server is not avalible at the moment or something like that!

  • NEED HELP: Where can I try out the iOS SDK in Melbourne, Australia?

    hey guys, i'd love to try developing for the iOS SDK and from what i can tell the only way i'll know if i can develop for it is actually doing it myself. i've been reading books about it, but i feel like this just isn't enough. the only problem is, i don't have a Mac and i'd rather not buy one just in case the SDK isn't for me because then i would have bought the Mac for no reason.
    there are a couple Apple retail stores near me, but i've never been into one before. does anyone know if they'll be able to help me out by allowing me 20-30 minutes to try out the SDK? i don't mind paying.
    thanks guys, i'd appreciate any help.

    Walk in to the store and ask. In general, Apple Store employees are told to display a helpful attitude towards (possible) clients.
    If they don't have a Mac with the SDK already installed, you might want to come back later until the local Genius is done downloading and installing it.

  • PLUS attributes in a Bridge Panel with XMP SDK

    Hi all,
    I' m developing a Bridge Info Panel with Flash Builder 4 and XMP SDK.
    I have to build a panel that contains the "Model Release Status" metadata.
    This metadata belongs to the PLUS Namespace.
    This is my form item:
    <!-- Model Release Status -->
         <fi:XMPFormItem
              label="$$$/xmp/sdk/custompanels/MySample/ModelRS=Model Release Status:"
              labelTooltip="$$$/xmp/sdk/custompanels/MySample/ModelRST=Summarizes the availability and scope of model releases authorizing usage of the likenesses of persons appearing in the photograph.">
              <fi:XMPComboBox xmpPath="plus:ModelReleaseStatus">
                   <fi:XMPComboBoxItem label="$$$/xmp/sdk/custompanels/MySample/ModelRST/None=None" xmpValue="http://ns.useplus.org/ldf/vocab/MR-NON">
                   </fi:XMPComboBoxItem>
                   <fi:XMPComboBoxItem label="$$$/xmp/sdk/custompanels/MySample/ModelRST/NAP=Not Applicable" xmpValue="http://ns.useplus.org/ldf/vocab/MR-NAP">
                   </fi:XMPComboBoxItem>
              </fi:XMPComboBox>     
         </fi:XMPFormItem>
    But I see a little difference from the original one.
    If I write metadata with Adobe Bridge original panel, I see this:
         <rdf:Description rdf:about=""
                xmlns:plus_1_="http://ns.useplus.org/ldf/xmp/1.0/">
             <plus_1_:ModelReleaseStatus>http://ns.useplus.org/ldf/vocab/MR-NON</plus_1_:ModelReleaseStatus>
             <plus_1_:Version>1.2.0</plus_1_:Version>
          </rdf:Description>
    Instead, in my custom panel, I see this.
           <rdf:Description rdf:about=""
                xmlns:plus_1_="http://ns.useplus.org/ldf/xmp/1.0/">
             <plus_1_:ModelReleaseStatus>http://ns.useplus.org/ldf/vocab/MR-NAP</plus_1_:ModelReleaseStatus>
          </rdf:Description>
    The Version attribute doesn't compare in my.
    I have two questions:
    1. is it mandatory this attribute?
    In http://ns.useplus.org/LDF/ldf-XMPSpecification they says that is only used in case of misunderstanding.
    2. If yes, how can I implement this?
    With an event on the save button?
    I believe it's more difficult and it's not so useful..
    Any idea, guys?
    Regards,

    Hi,
    to answer your questions.
    1. As far as I know, the plus:Version is not mandatory.
    2. I used the following algorithm in "FileInfo". A hidden XMPTextInput field at the end of the form contains the version.
    On the xmpWrite event, I check if the XMP packet has been modified and contains any plus:* values.
    In that case I add the version only if at least one plus property is contained in the packet, otherwise it is removed.
    Hope this helps,
    -- Stefan

  • Need help in understanding FA acquisition via Internal Order

    Hi Gurus
    I need your help in understanding the FA acquisition via Internal Order. The process we are following is that we create AUC using the AUC asset class and enter that AUC number in the settlement rule while creating IO. Once IO budget is approved, we release the IO. Once GR is completed, we do the Invoice receipt for the PO, followed by settlement of IO against the AUC. Afterwards, we create fixed asset in AS01 and enter this asset number in the settlement rule for the AUC in AIAB and settle the AUC to Fixed asset for the costs.
    My question is that during all this process, I don't see the PO information in the AUC record. When I display AUC, under the Enviornment tab, I see the Purchase order link but when I click it, there is nothing in there. The reason could be that we are creating AUC seperatly and not from within the IO where it says create AUC. I am not sure what is the best way for the whole process.
    I would be thankful if you can guide me.
    Thanks,
    Shalu

    Hi
    Can someone please help me with this issue?
    Thanks,
    Shalu

  • TS3037 I need help pairing my iPad Air to my Bose wireless speaker via bluetooth

    I need help pairing my iPad Air to my Bose wireless speaker via Bluetooth

    I think this document will solve your problem.
    Pairing and connecting to a Mac® computer

  • Hi, I need help with my iphone four bought in England but I live in Italy, I upgraded IOS six and now I can not read more than the Italian card, how can I contact a service center via email?

    Hi, I need help with my iphone four bought in England but I live in Italy, I upgraded IOS six and now I can not read more than the Italian card, how can I contact a service center via email?

    Only the carrier it is locked to can authorize unlocking it. Sounds like the phone was hacked to unlock it originally. Find out what carrier it is locked to, and look up their contact information using google or the search engine of your choice.

  • I bought my macpro in NY but now I live in France. I want to order an album via IPHOTO and it cannot be delivered other than in US??? please I need help

    I bought my macpro in NY but now I live in France. I want to order an album via IPHOTO and it cannot be delivered other than in US??? please I need help

    I assume you mean 'Order an album via iTunes', not iPhoto.
    If you live in France, I believe your account with Apple will need to show a French residential address and be supported by a credit card issued by a bank in France.
    That means you will need to open a new account if these details are not part of your current account.
    Incidentally, some albums in iTunes USA are not available in all countries due to licensing agreements etc.

  • Seriously need help but cant get through via phone

    I am seriously needing help spend almost all week chatting with verizon via my verizon however nobody could come up with an answer for my problem  it seems that I have been locked out of using the online payment option  and the lady says it does not show that on her end  I need this addressed asap but the lines have been down for days according to the store I just spoke with.  is there someone in finance or billing that could call me?  I have several things I am trying to do  1.  add an account manager 2. make a payment arrangement for a week out ( I normally do this as my payday falls odd)  3.  gain access to online payments

    Take each of the following steps that you haven't already tried. If the problem isn't solved, ask for further instructions.
    1. Are the current date (including the year) and time shown on your system clock? If not, correct them and test.
    2. Disable any third-party firewall, "security" software, or network filter.
    3. In some versions of OS X, Parental Controls has a bug that prevents loading of secure websites. Turn it off.
    4. The process by which OS X checks the validity of root SSL certificates doesn't work behind the authenticating SOCKS proxies used on some enterprise networks. If applicable, contact your network administrator. The proxy server may need to have its settings changed.

  • HT3069 Hi need help renting, Italian movies via my Apple TV (currently Australia Settings).

    Hi All,
    Need help with renting a movie/tv show on my Apple TV, in a different country.
    I have tried to change the setting on my Apple TV but when I proceeded to rent a movie, it told me I needed to set up an itunes account?
    I already have one in English/Australia isnt the sufficent ?
    Any help would be really appreciated.
    Cheers
    Anthony

    Ok thank you so much, for your timely response.
    RESPONSES:
    1)   When I set up my iMac, I did not transfer any data directly from my windows PC.  I simply used the same iTunes login and account.  I have access to all of the files via the "Purchased" section of the iTunes store.  If I click "Download Previous Purchases"  text, I can download ALL of the purchases I have ever made.
    2)   I have the Apple TV 2, so good news, question answered.  I thought maybe it was the Apple TV 1, but it is the Black model, so bam.  Good response for you.  Well the whole damned reply is an awesome response, just pointing out that one piece of awesome.  I stated that it was an Apple TV 2, and yet you were still good enough to figure I could be mistaken, and provide me with knowleedge just incase.
    QUESTIONS:
    3)   So can my iMac not stream the data directly from itunes, without download?  Apple TV can, but perhaps that is something among many things that maker it unique, and awesome.
    SERIOUSLY.... THANK YOU... 
    I work in the computer support section for the Military.  The only problem is we use Windows , lol.  Well that and i've been gone for nearly 6 months on recover.  I go back next month though I hope.  But working in that field gives me the abilty to judge responses that run inside the same vein.  Your response was so awesome that I half thought I might have written it myself. 

  • I need help, How could I add Aliases to Local Administrator account via terminal commands???

    I need help, How could I add Aliases to Local Administrator account via terminal commands???
    I want to use commands to add alias for existing administrator account remotly by using ARD.
    Thanks.

    Hi,
    a Windows Domain Controller does not have any local user or groups. So you might add the user to the admin group at Domain level.
    B RGDS,
    Gregor
    Edited by: Gregor Gasper on Jan 9, 2009 1:44 PM

Maybe you are looking for

  • Camera Raw 5.5 Crashes on Nikon NEF, 5.4 Does Not

    I was successfully running the trial version of Photoshop Elements 7 with 5.4 of the raw file filter. I purchased the Premiere/Photoshop Elements 7 bundle, uninstalled the trial, and installed both full versions. I also downloaded Camera Raw 5.5 and

  • List Print issue------------Urgent

    Hello All ,                 I have a little problem, I have created a list program. I have to check the if the user already taken the print out of the list then at the secound time(while taking the program) I have to give him the message that the lis

  • When do i need to create SID adm user?

    Hi All,    I am new to XI.I am trying to install XI on windows 2003 and sqlserver. I am done with the following without any error? 1. OS and its service packs 2. Sql Server and patches. 3.Central instance 4. DB instance 5. Installed sap gui. I have l

  • Poor resolution in linux

    hi... i find that the resolution of movies played thru jmf is poor in linux as compared to that in windows. Anyone knows why? can anyone suggest how to improve it? Thanks and regards...

  • HTML Data Set not created?

    I have created a very basic page to test (and learn) about dynamic spry regions, but the data set constructor does not seem to be instantiating the data set.  At this point I'm keeping it very simple just to see how things work. Per the Spry Framewor