rdf

Reading multiple instances of a tag or element using XSLT

My RDF xml file is something like this.. <rdf:RDF> <rdf:Description rdf:about="........"> <j.0:property rdf:resource="....."/> <j.0:property rdf:resource=....."/> <j.0:property rdf:resource="........"/> </rdf:Description> </rdf:RDF> Now in my XSLT stylesheet I need to retrieve the values of all the j.0:...

SO what RDF database do i use for product attribute situation initially i thought about using EAV?

Hi, i have a similar issue as espoused in http://stackoverflow.com/questions/695752/product-table-many-kinds-of-product-each-product-has-many-parameters i am convinced to use RDF now. only because of one of the comments made by Bill Karwin in the answer to the above issue but i already have a database in mysql and the code is in php....

OpenCalais Parse RDF in .NET

is there a way to parse OpenCalais RDF in .NET as i'm using dotnetRDF and it keeps giving me errors. A sample of the Rdf generated may be found in http://viewer.opencalais.com/ , i'm honestly really lost and would really appreciate any help! please help if you use any other apis or know how to make it work with dotnetRDF as i'm honestly ...

Creating a triple store query using SQL - how to find all triples that have a common predicate and object

I have a database that acts like a triple store, except that it is just a simple MySQL database. I want to select all triples that have a common predicate and object. Info about RDF and triples I can't seem to work out the SQL. If I had just a single predicate and object to match I would do: select TRIPLE from TRIPLES where PREDICATE...

Best approach to convert XML to RDF/XML using an ontology

I have an XML which uses the XPDL standard (which has an XML schema). What I'm trying to do now is to convert its content to RDF format (serialized in XML), in terms of a certain ontology. Clearly, there needs to be some sort of mapping here. I would like to do this using PHP. The thing is, I have no idea how to do this best. I know how ...

RDF of sentences

Hi, I need to classify sentences as a RDF format. In other words "John likes coke" would be automatically represented as Subject : John Predicate : Likes Object : Coke does nyone know where I should start? Are there any programs which can do this automatically or would I need to do everything from scratch? Any help would be appreci...

A representation in OWL XML

I am trying to construct an ontology in protege. However, I was wondering how to represent the following in OWL XML: A hospital consists of various departments, wards, and the central administration Its a bit strange that I can construct the hardest of ontologies but i just can't solve this. Any help would be greatly appreciated. S. ...

How can one extract rdf:about or rdf:ID properties from triples using SPARQL?

It seemed a trivial matter at the beginning but so far I have not managed to get the unique identifier for a given resource using SPARQL. What I mean is given, e.g., rdf:Description rdf:about="http://..." and then some properties identifying this resource, what I want to do is to first find this very resource and then retrieve all the tr...

SPARQL UNION - Result set incomplete

I have two queries: query 1: SELECT DISTINCT ?o COUNT(?o) WHERE { ?s1 ?somep1 <predicate_one-uri>. ?s1 ?p ?o} query 2: SELECT DISTINCT ?o COUNT(?o) WHERE {?s2 ?somep2 <predicate_two-uri>.?s2 ?p ?o.} Each query gives me a different result set (as expected). I need to make a union of these two sets, from what I understand the...

XML/RDF to Java Objects with XSD

So here's the scenario...I have an XSD file describing all the objects that I need. I can create the objects in Java using JAXB no problem. I have an XML/RDF file that I need to parse into those objects. What is the EASIEST way to do this? I have been looking into Jena and have played around with it, but can't see how to easily map th...

RDF Usage Rates for Syndication

Is RDF still used widely for content syndication? Specifically, I know only of Slashdot as a large scale website syndicating content in that format (say versus RSS). Understandably this might seem vague to answer so more specifically: Can anyone list any larger sites similar in scale to Amazon or CNN using it? Any web based publishin...

How to write an RDF Schema?

I am trying to get my head around using RDF to describe custom resources. I understand there are xmlns' out there such as Dublin Core and foaf which provide predefined element sets. How do I go about creating my own? I may be barking up the wrong tree of course and should stick to xml + xsd? ...

RDF correct approach to subClassOf

I am learning RDF. What's the difference between this two approaches: a) <?xml version="1.0" encoding="UTF-8"?> <rdf:RDF xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:tur="http://www.blah.com/turismo#"&gt; <rdf:Description rdf:about="http://www.blah.com/tur...

RDF/XML format to JSON

I am trying to convert the RDF/XML format to JSON format. Is there any python (library) example that i can look into for this to do ? ...

Is ROWLEX 2.1 OWL2-aware?

Is ROWLEX 2.1 an OWL 2 or OWL 1 framework? ...

Reading Ontology with Jena, feeding it with RDF triples, and producing correct RDF string output.

Hi, I have an ontology, which I read in with Jena to help me scrape some RDFa triples from a website. I don't currently store these triples in a Jena model, but that is fairly straight forward to do, its on my to do next list. The area I am struggling with, though, is to get Jena to output correct RDF for the ontology I have. The ontol...

Do you know of any OWL 2 tools/libraries implemented in C#?

Do you know of any OWL 2 tools/libraries implemented in C#? There are some in Java, but am I to rewrite them to C# or invent my own ones If I prefer .Net? ...

Is there a more up to date RSS feed API for Python than Feedparser?

Seems it hasn't been updated in a while, and lacks support for things like sy:updateFrequency. ...

simple ways to create rdf/xml using php?

what's the best/simplest/easiest way to create rdf/xml with php? ideally i would like to use simpleXML - but i believe it doesn't support namespaces? failing that maybe simpleDOM? id rather not use DOM since it tends to confuse me a lot! perhaps there is some other way? thanks for your help! :) nb: i tried to post an example but co...

exploratory SPARQL queries?

whenever i start using sql i tend to throw a couple of exploratory statements at the database in order to understand what is avaliable, and what form the data takes. eg. show tables describe table select * from table could anyone help me understand the way to complete a similar exploration of an rdf datastore using a SPARQL endpoin...