Gitlab service upgraded. Please report any problems to dl_gitadmin@cs.lth.se

Names.jrag 1.33 KB
Newer Older
1 2
/* -*-Java-*- */

3
/* 
Anders Nilsson's avatar
Anders Nilsson committed
4
 * Copyright (C) 2006,2010,2014  Anders Nilsson <anders.nilsson@control.lth.se>
5 6
 *
 * This file is part of OntologyCompiler.
7 8 9 10 11 12 13 14 15 16 17 18 19
 *
 * OntologyCompiler is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.

 * OntologyCompiler is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 
 * You should have received a copy of the GNU General Public License
 * along with OntologyCompiler.  If not, see <http://www.gnu.org/licenses/>.
20 21
 */

22
aspect Names {
23 24 25
	syn String Element.name() = "";
	eq OClass.name() = getId();
	eq OwlProperty.name() = getId();
26
	eq RdfsDomain.name() = getId();
27 28
	eq OwlRestriction.name() = getRestrictionClassId();
	eq Declaration.name() = getElement(0).name();
Anders Nilsson's avatar
Anders Nilsson committed
29
	eq Clazz.name() = iri().trim();
30
	eq NamedIndividual.name() = iri().trim();
31
	eq ObjectProperty.name() = iri().trim();
Anders Nilsson's avatar
Sync  
Anders Nilsson committed
32
	eq DataProperty.name() = iri().trim();
33 34 35 36 37


	static String ASTNode.gName = "owl";
	public void ASTNode.setGrammarName(String s) {gName = s;}
	public String ASTNode.grammarName() {return gName;}
38
}