Another question to answer:
I’ve been reading about RDF, and I’m not sure in what situations it is more appropriate to use RDF over straight XML. I usually see RDF expressed as XML, but sometimes I see it written as language-independent functions (or methods).
Part of me is wondering if RDF is more appropriate for this project. What might the benefits be? And if it is, how difficult it would be to refactor it.
(Note that the person asking the question is talking about a small data-oriented project.) There’s a huge amount that could be said about this, so I might well post about some of it again. Here, I’m going to cut to the chase. This is what I’d recommend:
Model your application in RDF terms: Create a description of what classes of resources your application needs to deal with, and which properties link those together. You can call this description a RDF schema or conceptual model or ontology, depending on how impressive you want to sound. This modelling activity is useful in itself, largely because it helps you understand what information you’re dealing with and how it fits together.
Create a markup language that can be mapped to RDF: An XML version of your data allows you to make your data more generally available and reusable than locking it away in a triple store. Do one of the following:
Define a subset of RDF/XML for your application: The full flexibility of RDF/XML is complicated to handle for plain XML processors, so subset it to, for example, always used typed elements (such as <my:Course>) rather than rdf:type properties, and to use referencing or nesting in a consistent way.
Design markup languages that use RDFa attributes to reflect the semantics of the data: This gives you a standard way of mapping your markup language into RDF triples without having to adopt the “striped” design of RDF/XML in your markup language. A lot of the attributes can be defaulted to leave the markup language fairly streamlined.
Design markup languages exactly as you like, and define GRDDL mappings from them into RDF/XML: This gives you the most flexibility in your markup language design (though not complete flexibility — you still need to be able to identify the statements that you want to make from the XML), at the expense of having to write some XSLT.
The point of doing this is to put you in a position where you can just use XML if you want, but you also have the flexibility of using RDF either now or in the future.
The benefits of using RDF are partly to do with the ease with which you can do certain kinds of processing (specifically combining “facts” together to draw conclusions) and partly to do with the potential of reuse of your data. In the same way that XML gives people a common syntax and thus aids interchange of information, RDF allows others to draw some conclusions (more than they would with a random mess of elements and attributes) about what your data means.
I don’t think that using RDF triple stores, SPARQL and all that jazz gives you a great return for a small-scale, personal project — you’re better off sticking to flat files and some XSLT — but it doesn’t hurt to build in some of the formality of RDF anyway.
Comments
Re: RDF and XML Q&A: Which should I use?
free hardcore animal porn animal porn video free free amateur animal sex porn tube free porn tv animal porn 365 free animal you porn animal free animal porn free video archive animal porn watch free denmark porn animal sex free free adult animal porn free animal porn movie free animal sex porn videos free streaming animal porn porn tube animal free animal porn for free porno por internet liberian porno youngest painful porno girls porno max x video yutube porno porno malgache free gay porn videos free video porn free full length porn videos free porn video clips free amateur porn videos free lesbian porn videos free teen porn videos free online porn videos free hardcore porn videos free long porn videos free porn flash videos porn videos free free streaming porn videos free anime porn videos free black porn videos free amateur porn video free gay sex porn videos free homemade porn videos free cartoon porn videos free full porn videos free asian porn videos long free porn videos free porn videos online free xxx porn videos free full length porn video free animal porn videos free longer porn video free celebrity porn videos free mature porn videos porn video free free massage porn video free amatuer porn videos free lesbain porn videos free hentai porn videos free porn video downloads free gay porn video free porn videos free lesbian porn video download free porn videos free shemale porn videos free teen porn video watch free porn videos free porn videos trailers clips free videos porn free incest porn videos free milf porn videos free amature porn videos free beastiality porn videos free hot porn videos free adult porn videos full free porn videos porn free videos free streaming porn video free ebony porn videos free porn video trailers porn videos for free best free porn videos porn free video free porn videos free streaming video porn
Re: RDF and XML Q&A: Which should I use?
free animal porn tube free animal porn animal porn free free animal porn videos free animal porn movies free animal porn vids free animal porn video best free animal porn free porn animal free animal porn stories free animal porn clips free porn animal movies free animal sex porn animal porn free movies animal porn free video free animal porn pics free gay animal porn animal free porn animal porn free videos 100% free animal porn animal porn free clips free animal porn sites watch free animal porn animal porn tube free animal porn videos free free animal porn tubes tiny animal porn free 100free animal porn free free animal porn videos free animal porn movies galleries free gay animal porn free gay asian porn free gay daddy porn free teen gay porn free black gay porn movies free gay german porn free gay porn tubes free gay toon porn free mexican gay porn free videos gay porn gay porn free movies totally free gay porn free amateur gay bear porn free gay guy porn free gay incest porn free gay interracial porn free gay military porn free gay porn torrent free gay teenage porn free porn videos gay hot gay porn free free 3gp gay porn free full gay porn movies free gay 3gp porn free gay boys porn free gay gangster porn free gay ipod porn free gay porn site free porn videos free porn video
Re: RDF and XML Q&A: Which should I use?
free 15 minutes gay porn gay porn free free gay black porn free gay porn pics free gay porn video free black gay porn free gay porn vids free gay porn blog free gay teen porn free black gangsta gay porn new free gay porn gay porn free video free online gay porn free gay porn pics free gay porn tube free gay beef porn free gay porn blogs free young gay porn watch free gay porn free gay porn downloads gay free porn free gay male porn free full length gay porn free xxx gay porn free gay porn hot list free porn gay free gay porn stories free hot gay porn free gay porn pictures free gay bear porn 15 minutes of free gay porn free gay porn passwords free gay cartoon porn free male gay porn best free gay porn free amateur gay porn free gay porn for ipod free gay porn movie free gay porn online free streaming gay porn free gay guys porn free gay latino porn 100% free gay porn free gay hardcore porn free gay sex porn free gay porn trailers free gay tube porn twink gay porn free free gay rape porn free latin gay porn hot gay free porn free amatuer gay porn free full length gay porn videos free gay dominican porn videos free gay ebony porn free gay porn finder free gay porn wmv gay video free porn absolutley free gay men porn movies free gay porn
Re: RDF and XML Q&A: Which should I use?
free amatuer porn clips free porn trailers clips videos free streaming porn clips free tranny porn clips free porn clips free porn clips female orgasm free hardcore lesbian porn clips free incest porn clips free nude porn clips free porn movies clips free porn trailers clips videos free bbw porn clips free fatgirl porn clips free granny porn clips porn video clips free sexy women in porn video clips free watch free porn clips free animea porn clips free black boobs porn clips free daily porn clips free latina porn clips free mobile porn clips free quicktime porn clips porn clips for free free classic porn clips free dirty porn clips free dog porn clips free full length porn clips free porn clips online free psp porn clips free latin porn clips free porn clips and movies free porn clips-clear clips free spanking porn clips animal porn free clips bunny de la cruz free porn clips free farm porn clips free full length porn clips free porn trailers videos clips free porn vidios and clips free pregnant porn clips streaming amatuer porn clips free free lesbian porn clips free ameture porn clips free big cock porn clips free black porn video clips free brazil porn clips free brianna banks porn clips free clips of porn free hentai angel blade porn clips free interracial porn clips free lesbain porn clips free gay porn free gay porn videos free gay porn movies free gay porn clips free gay sex porn videos free gay porn galleries free gay porn pic post free gay porn sites
Re: RDF and XML Q&A: Which should I use?
Basically the message is use the technology when it gives you benefits. That’s a reasonable take. Only geeks ;) like to use it for the state of art.
On my personal experience, I have used rdf (n3) because it helped me to take into account for my lazyness. I’m using it for managing the QA Matrix. I don’t have to respect a specific order in the document and this is cool.
PS: the captcha stops working when you block cookies. :/
Re: RDF and XML Q&A: Which should I use?
“You can call this description a RDF schema or conceptual model or ontology, depending on how impressive you want to sound”
And if you want to sound really, like, old school(!) you can refer to it as plain old entity-relationship modelling as really thats all it is. My current view is that designing RDF vocabularies is like E-R modelling, only without that need to eventually make the model fit into a physical database schema. Decide on the things, properties and their relationships and you’re done.
I’ve been using the “Define a subset of RDF/XML for your application” approach quite successfully for the past 6 months or so on a client project. I’ve been creating an RDF vocabulary that the client is shipping to us as XML documents. The RDF profile is validated with XML Schema as a first pass. This provides the up-front validation that you get with XML, but the content is entirely valid RDF/XML too, so we can just throw it into a triple store if it passes validation. Its works really well.
With this approach there’s also suprisingly little RDF/XML syntax that creeps through into your XML vocabulary. For us this has amounted to:
rdf:about, rdf:resource — which are easy to grok from a “primary key” & “foreign key” standpoint
rdf:parseType=”Collection” — for lists of stuff (we’ve avoided Seq, Bag, etc)
rdf:parseType=”Literal” — for XML literals. A bit funky, but preferable to CDATA.
Other than that we use namespaces everywhere, xml:base to shorten URIs whereever possible, and avoid using rdf:RDF as the root element of the document.
I’ll try and find the time to write this up better, but thought I’d leave a comment here to begin with!
Re: RDF and XML Q&A: Which should I use?
I certainly agree with you.
Re: RDF and XML Q&A: Which should I use?
Thanks Leigh. I’m curious about avoiding using rdf:RDF as the root element of the document. I guess that means that there’s a single resource that everything else is related to in some way?
Re: RDF and XML Q&A: Which should I use?
Hi Jeni,
Yes, thats correct, everything in the document is related in some form to the primary resource.
Our system takes a collection of XML documents, each of which describe a single resource, its relationships to other primary resources, and any “sub-ordinate” resources that can fully described alongside its primary resource (e.g. blank nodes).
Combining this RDF into a single triple store builds a large interconnected graph. But outside of that store, there are small chunks of XML that can be easily manipulated.
Re: RDF and XML Q&A: Which should I use?
rdf:RDF is just an optional container for RDF triples: you never have to use it if you have your own container, or if you extend an existing container like html:head.