Just define the prefixes somewhere. Use these elements to create your own graph. You can use qnames for nodes as well -> like this: Just define the prefixes somewhere. http://pizza-larry.fi/about menu:pizzaLake http://pizza-larry.fi/menu/pizzaCardinal http://pizza-larry.fi/menu/pizzaLake 5.50 http://pizza-larry.fi/menu/pizzaOpera http://food.com/ontology/shrimp 6.50 7.00 http://food.com/ontology/tunafish http://food.com/ontology/ham http://food.com/ontology/bacon http://food.com/ontology/hasTopping http://business.com/ontology/sells http://business.com/ontology/hasPrice