Wednesday, October 8, 2008

Simple acronyms in SKOS Turtle and RDF

It wasn't hard at all to convert my simple acronym experiment to SKOS Turtle and then use the rdf:about Validator and Converter to generate the equivalent RDF. I spent more effort formatting the "code" for this blog post!

For example, my pure XML acronym for Agent-Based Computing (ABC) was:

<Acronym>
<Term>ABC</Term>
  <CompoundTerms>
   <CompoundTerm>Agent-Based Computing</CompoundTerm>
  </CompoundTerms>
</Acronym>

And in Turtle that is:

ac:agent_based_computing rdf:type skos:Concept;
  skos:prefLabel "Agent-Based Computing"@en;
  skos:altLabel "ABC"@en.

And the XML/RDF created by the validator is:

<skos:Concept rdf:about="http://agtivity.com/xml/agent_based_computing">
<skos:prefLabel xml:lang="en">Agent-Based Computing</skos:prefLabel>
  <skos:altLabel xml:lang="en">ABC</skos:altLabel>
</skos:Concept>

Alas, each of the three RSS definitions is a distinct SKOS concept, but that does make some sense since each of the three meanings is somewhat distinct even though they are all under the same umbrella concept. I will have to think about what it might mean to have the acronym itself be a distinct concept. Actually, there was some discussion of semantic relationships and acronyms in the primer.

I have it online at http://agtivity.com/xml/acronym5.txt:

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix skos: <http://www.w3.org/2008/05/skos#>.
@prefix ac:http://agtivity.com/xml/.
 
ac:agent_based_computing rdf:type skos:Concept;
skos:prefLabel "Agent-Based Computing"@en;
skos:altLabel "ABC"@en.
ac:resource_description_framework rdf:type skos:Concept;
skos:prefLabel "Resource Description Framework"@en;
skos:altLabel "RDF"@en.
ac:really_simple_syndication rdf:type skos:Concept;
skos:prefLabel "Really Simple Syndication"@en;
skos:altLabel "RSS"@en.
ac:rich_site_summary rdf:type skos:Concept;
skos:prefLabel "Rich Site Summary"@en;
skos:altLabel "RSS"@en.
ac:rdf_site_summary rdf:type skos:Concept;
skos:prefLabel "RDF Site Summary"@en;
skos:altLabel "RSS"@en.

The XML/RDF generated by the validator is online at http://agtivity.com/xml/acronym5.rdf:

<?xml version="1.0"?>
<rdf:RDF
xmlns:ac="http://agtivity.com/xml/"
xmlns:skos="http://www.w3.org/2008/05/skos#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<skos:Concept rdf:about="http://agtivity.com/xml/agent_based_computing">
<skos:prefLabel xml:lang="en">Agent-Based Computing</skos:prefLabel>
<skos:altLabel xml:lang="en">ABC</skos:altLabel>
</skos:Concept>
  <skos:Concept rdf:about="http://agtivity.com/xml/resource_description_framework">
<skos:prefLabel xml:lang="en">Resource Description Framework</skos:prefLabel>
    <skos:altLabel xml:lang="en">RDF</skos:altLabel>
</skos:Concept>
  <skos:Concept rdf:about="http://agtivity.com/xml/really_simple_syndication">
<skos:prefLabel xml:lang="en">Really Simple Syndication</skos:prefLabel>
    <skos:altLabel xml:lang="en">RSS</skos:altLabel>
</skos:Concept>
  <skos:Concept rdf:about="http://agtivity.com/xml/rich_site_summary">
<skos:prefLabel xml:lang="en">Rich Site Summary</skos:prefLabel>
    <skos:altLabel xml:lang="en">RSS</skos:altLabel>
</skos:Concept>
  <skos:Concept rdf:about="http://agtivity.com/xml/rdf_site_summary">
<skos:prefLabel xml:lang="en">RDF Site Summary</skos:prefLabel>
  <skos:altLabel xml:lang="en">RSS</skos:altLabel>
</skos:Concept>
</rdf:RDF>

-- Jack Krupansky

2 Comments:

At July 15, 2014 at 11:51 AM , Anonymous Anonymous said...

Thanks Sir

 
At February 6, 2015 at 8:28 PM , Anonymous Varia said...

thank you for the information you provided. very helpful. may be used as a reference.
obat peninggi badan

 

Post a Comment

Subscribe to Post Comments [Atom]

<< Home