[
https://issues.apache.org/jira/browse/OODT-665?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13894459#comment-13894459
]
Ross Laidlaw commented on OODT-665:
-----------------------------------
Hi Chris,
Your changes look great for the JAX-RS part too. I tried testing it locally.
I'm not sure if I tested it correctly, but here are some brief details of what
I tried:
Metadata for an example product:
{code:xml}
<cas:metadata xmlns:cas="http://oodt.jpl.nasa.gov/1.0/cas">
<keyval>
<key>an example key</key>
<val>an example value</val>
</keyval>
</cas:metadata>
{code}
URL to get dataset via JAX-RS:
{panel:bgColor=#ffffff}
http://localhost:8080/fmprod/jaxrs/dataset.rdf?productTypeId=urn:oodt:MetKeySpacesProduct&configuration=example
{panel}
Output (met key edrn:AnExampleKey visible near the end):
{code:xml}
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:cas="urn:oodt:" xmlns:edrn="urn:edrn:"
xmlns:x="http://edrn.nci.nih.gov/rdf/schema.rdf#">
<edrn:MetKeySpacesProduct
rdf:about="http://localhost:8080/fmprod/jaxrs/product?productId=395bb47f-8fe9-11e3-a848-bde38fc63294">
<cas:FileLocation>/usr/local/oodt/filemgr/repository/metspaces.txt</cas:FileLocation>
<cas:ProductType>MetKeySpacesProduct</cas:ProductType>
<cas:CAS.ProductId>395bb47f-8fe9-11e3-a848-bde38fc63294</cas:CAS.ProductId>
<cas:MimeType>text/plain</cas:MimeType>
<cas:MimeType>text</cas:MimeType>
<cas:MimeType>plain</cas:MimeType>
<edrn:ProductStructure>Flat</edrn:ProductStructure>
<cas:CAS.ProductReceivedTime>2014-02-07T11:16:00.377Z</cas:CAS.ProductReceivedTime>
<cas:CAS.ProductName>metspaces.txt</cas:CAS.ProductName>
<edrn:AnExampleKey>an example value</edrn:AnExampleKey>
<cas:Filename>metspaces.txt</cas:Filename>
</edrn:MetKeySpacesProduct>
</rdf:RDF>
{code}
> CAS RDF and RSS product service doesn't allow product type met to have keys
> with spaces
> ---------------------------------------------------------------------------------------
>
> Key: OODT-665
> URL: https://issues.apache.org/jira/browse/OODT-665
> Project: OODT
> Issue Type: Bug
> Components: product server
> Affects Versions: 0.6
> Environment: discovered on the EDRN project.
> Reporter: Chris A. Mattmann
> Assignee: Chris A. Mattmann
> Fix For: 0.7
>
>
> The RDF and RSS services take product type metadata keys and if those keys
> have spaces in them it spits out incorrect XML since the keys are mapped
> directly to tags and tags cannot have spaces. We'll use a String library to
> join any spaced keys into a CamelCase unspaced tag.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)