ProgettiDavid,
I have arranged my data according to your suggested structure :
{
items: [
...
],
properties: {
...
},
types: {
...
}
}
but unfortunately I have always the same error of invalid property id, that I
cannot solve with the Babel validator, that not gives me any result.
Sorry to ask you again to verify the new structure.
Thank you,
Giuseppe
----- Original Message -----
From: David Huynh
To: General List
Sent: Friday, April 20, 2007 3:39 PM
Subject: Re: Validator problem
Giuseppe,
I'm annotating your code with the problems below in HTML... hope your email
client can display HTML:
{
properties: {
"Company": {
valueType: "item"
}
},
{ <--- from here on, these items should be inside items: [ ... ]
type: "Company",
label: "Tecnopolis",
address: "Bari, I 70100",
subject: "Computer Science",
URL: "http://www.tno.it",
email: "mailto:[EMAIL PROTECTED]"
},
{
type: "Company",
label: "IAM",
address: "Bari, I 70100",
subject: "Agricolture",
URL: "http://www.iamb.it",
email: "mailto:[EMAIL PROTECTED]"
},
{
type: "Company",
label: "ISUFI-eBMS",
address: "Lecce, I 73100",
subject: "E-Business Management",
URL: "http://www.ebms.it",
email: "mailto:[EMAIL PROTECTED]"
},
{
type: "Company",
label: "Laterza",
address: "Bari, I 70100",
subject: "Publishing",
URL: "http://www.laterza.it",
email: "mailto:[EMAIL PROTECTED]"
},
{ id: 'Tecnopolis', addressLatLng: '41.093704,16.886495' },
{ id: 'IAM', addressLatLng: '41.093704,16.886495' },
{ id: 'ISUFI', addressLatLng: '40.413886,18.187663' },
{ id: 'Laterza', addressLatLng: '41.093704,16.886495' }
] <----remove this bracket
} <---remove this brace
items: [
... <---move the items above into here
]
}
The JSON file should be structured like so
{
items: [
...
],
properties: {
...
},
types: {
...
}
}
All 3 of those main chunks are optional. Just be careful where you add data.
The Babel Validator is far from perfect and was intended to catch trailing
commas, mainly.
Cheers,
David
Giuseppe Bux wrote:
David,
Please, would you check the attached Exibit and related Json data files?
My Exhibit application gives error on the json data for invalid property
ID, while the Babel Validator don't find errors.
Thanks in advance,
Giuseppe
P.S. Please check also my code for the Map view.
Thank you!
----------------------------------------------------------------------------
KIBS Systems Consulting: Progetti
Titolo esteso:
Dominio di business:
Obiettivo:
Contractor: :
Partner: :
Coordinatore tecnico:
Programma di finanziamento:
Servizi attesi:
Data avvio progetto:
Data fine progetto:
Contact email
----------------------------------------------------------------------------
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general
------------------------------------------------------------------------------
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general
{
items: [
{ id: "dContentWare",
label: "dContentWare",
type: "project",
"Company": "Laterza",
"homepage-url": "http://www.Laterza.it/",
"extended-title": "dContentWare ",
"executive-summary": "Il programma di
investimento, proposto dal Consorzio dContentWare, ha per oggetto la
messa a punto di un innovativo MODELLO DI BUSINESS di DIGITAL LIBRARY, in grado
di realizzare una piattaforma tecnologica per la strutturazione e la gestione
integrata di prodotti/servizi relativi alla Digital Content Industry (DCI).",
"funding-program": "POR Puglia 2000-2006",
"contractor": ["Ai2", "SoftwareDesign",
"Graphiservice"],
"contract-manager": "Claudio Lodoli",
"CM-email": "mailto:[EMAIL PROTECTED]",
"business-domain": ["digital library", "cultural
assets"],
"research-area": ["digital contents", "semantic web",
"folksonomies", "Virtual Community", "interoperability", "multi format
delivery", "multi channel delivery"],
"expected-services": [ "Digital Contents Packaging",
"Digital Contents Mall", "Digital Library Design"],
"target-audience": [ "digital contents providers",
"digital contents users"],
"start-date": "2007-01",
"end-date": "2008-06"
},
{ id: "CNOSSO",
label: "Cnosso",
type: "project",
"Company": "Tecnopolis",
"homepage-url": "http://www.tno.it/",
"extended-title": "SISTEMI BASATI SULLA CONOSCENZA PER
L'APPRENDIMENTO IN RETE E LA FRUIZIONE PERSONALIZZATA DEI BENI CULTURALI",
"executive-summary": "Il progetto ha per
obiettivo la realizzazione di una piattaforma tecnologica per l'apprendimento
in rete (Web learning), specializzata per il settore dei beni culturali, e di
una piattaforma tecnologica per l'erogazione di servizi di telematica mobile e
interattiva per il turismo culturale. Le piattaforme saranno basate su una
architettura innovativa a oggetti distribuiti in grado di consentire la
rappresentazione e la gestione della conoscenza caratteristica del sistema dei
beni culturali. I risultati saranno validati in casi pilota di elevato
interesse disciplinare e potenziale di ricaduta economica.",
"funding-program": "POR Puglia 2000-2006",
"contractor": ["Laterza", "Sfera", "Uniba", "Unile",
"Unifg"],
"contract-manager": "Luciano Schiavoni",
"CM-email": "mailto:[EMAIL PROTECTED]",
"business-domain": "cultural assets",
"research-area": ["digital contents", "semantic web",
"ontologies", "web-learning", "cultural tourisme"],
"expected-services": [ "Web-learning services",
"Cultural tourisme services"],
"target-audience": [ "cultural contents
providers", "tourisme agencies", "cultural domains researchers", "cultural
domains students"],
"start-date": "2003-06",
"end-date": "2006-06"
},
{
label: "Tecnopolis",
type: "Company",
address: "Bari, I 70100",
subject: "Computer Science",
URL: "http://www.tno.it",
email: "mailto:[EMAIL PROTECTED]"
},
{
label: "IAM",
type: "Company",
address: "Bari, I 70100",
subject: "Agricolture",
URL: "http://www.iamb.it",
email: "mailto:[EMAIL PROTECTED]"
},
{
label: "ISUFI-eBMS",
type: "Company",
address: "Lecce, I 73100",
subject: "EBusiness Management",
URL: "http://www.ebms.it",
email: "mailto:[EMAIL PROTECTED]"
},
{
label: "Laterza",
type: "Company",
address: "Bari, I 70100",
subject: "Publishing",
URL: "http://www.laterza.it",
email: "mailto:[EMAIL PROTECTED]"
},
{ id: 'Tecnopolis', addressLatLng: '41.093704,16.886495' },
{ id: 'IAM', addressLatLng: '41.093704,16.886495' },
{ id: 'ISUFI-eBMS', addressLatLng: '40.413886,18.187663' },
{ id: 'Laterza', addressLatLng: '41.093704,16.886495' }
],
properties: {
"Company": {
valueType: "item"
}
},
types:
{
{
"Company":
{
label: "Tecnopolis",
address: "Bari, I 70100",
subject: "Computer Science",
URL: "http://www.tno.it",
email: "mailto:[EMAIL PROTECTED]"
},
{
label: "IAM",
address: "Bari, I 70100",
subject: "Agricolture",
URL: "http://www.iamb.it",
email: "mailto:[EMAIL PROTECTED]"
},
{
label: "ISUFI-eBMS",
address: "Lecce, I 73100",
subject: "EBusiness Management",
URL: "http://www.ebms.it",
email: "mailto:[EMAIL PROTECTED]"
},
{
label: "Laterza",
address: "Bari, I 70100",
subject: "Publishing",
URL: "http://www.laterza.it",
email: "mailto:[EMAIL PROTECTED]"
}
}
}
}_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general