Skip to content

5 minutes HOWTO guide

chefabien edited this page Feb 22, 2016 · 14 revisions

This page shows you how to get started with AutoRDF

#Compiling from source on Debian or Ubuntu

apt-get install build-essential cmake librdf0-dev 
cmake .
make install

Write your ontology

We assume here that you already have a working OWL or RDFS file somewhere that defines your ontology. If not we suggest you start playing with some existing ontology such as FOAF, available at http://xmlns.com/foaf/spec/20140114.rdf

Start generating generating code

    fchevalier@ganymede:/tmp/test$ autordfcodegen 20140114.rdf 
    No prefix found for class http://www.w3.org/2003/01/geo/wgs84_pos#SpatialThing namespace, ignoring
    Class http://xmlns.com/foaf/0.1/Person has unreachable ancesto http://www.w3.org/2003/01/geo/wgs84_pos#SpatialThing, ignoring ancestor
    Property http://xmlns.com/foaf/0.1/based_near refers to unreachable rdfs class     http://www.w3.org/2003/01/geo/wgs84_pos#SpatialThing, skipping
    Property http://xmlns.com/foaf/0.1/focus refers to unreachable rdfs class http://www.w3.org/2004/02/skos/core#Concept, skipping

Clone this wiki locally