コード例 #1
0
func (b *Blank) Equals(other Term) (eq bool) {
	world_lock.Lock()
	bterm := b.raptor_term()
	oterm := other.raptor_term()
	if C.raptor_term_equals(bterm, oterm) != 0 {
		eq = true
	}
	C.raptor_free_term(oterm)
	C.raptor_free_term(bterm)
	world_lock.Unlock()
	return
}
コード例 #2
0
func (l *Literal) Equals(other Term) (eq bool) {
	world_lock.Lock()
	lterm := l.raptor_term()
	oterm := other.raptor_term()
	if C.raptor_term_equals(lterm, oterm) != 0 {
		eq = true
	}
	C.raptor_free_term(oterm)
	C.raptor_free_term(lterm)
	world_lock.Unlock()
	return
}
コード例 #3
0
func (u *Uri) Equals(other Term) (eq bool) {
	world_lock.Lock()
	uterm := u.raptor_term()
	oterm := other.raptor_term()
	if C.raptor_term_equals(uterm, oterm) != 0 {
		eq = true
	}
	C.raptor_free_term(oterm)
	C.raptor_free_term(uterm)
	world_lock.Unlock()
	return
}